9.10 GROUPBY: A Summary Table with One Formula
Summarize a set of orders one group at a time
Priyanka prepares an end-of-day worksheet in a fictional workshop with Blinkit and Amazon Now-inspired order examples. The exports below call the two example stores FreshGo and MarketRush. Her manager wants the amount for each city. Ten rows exist in the source, but the manager needs only six amounts. Every Pune order contributes to the same city figure. The report should show the new figure after its inputs change.
A group is the set of records with the same category values under the chosen rule. Use City as a group field if an order can belong to one city. An aggregate is the calculation applied to the group. SUM adds the amounts. COUNT counts numeric values. AVERAGE divides the sum of usable numeric values by their count. Change the measure or the grouping field only if that matches the question being asked.
GROUPBY returns a formula-driven summary as a spilled rectangle. In the first lab each output row contains a city and its amount. You can also add a grand total to the result. No order has been removed from the original worksheet. The grouped view shows a different level of detail and will recalculate from its inputs under normal calculation settings.
Build the formula from the category, the measure and the calculation
If a row has Pune in column C and 64 in column G, those two cells must represent the same order. A category from one source row and an amount from the next can still form a mathematically valid report, but it would allocate money to the wrong city. The source arrays should line up in both height and record order. The filter rule, if used, supplies one decision per original record.
| Argument | Meaning | City example |
|---|---|---|
| row_fields | Column or columns for grouping | City |
| values | Aligned values to calculate | Amount |
| function | Rule run on each group | SUM |
| field_headers | Whether the supplied inputs contain headers and whether to show them | 0 for data-only input, 3 to keep supplied headers |
| total_depth | Which total rows are present and where | 1 for grand total, 0 for groups only |
| sort_order | Sort priority and direction using output field positions | −2 for Amount descending with one grouping field |
| filter_array | One include decision per aligned record | Status equals Delivered |
| field_relationship | Treat multiple row fields as a hierarchy or a table | 0 when City contains Platform details |
Choose header and total settings explicitly
- Header mode 0. The inputs are data alone. No supplied header is returned. Type output labels separately in the worksheet when using this mode.
- Header mode 1. The supplied inputs include a heading row. GROUPBY uses it as a header without displaying it in the result.
- Header mode 2. The inputs have no heading row and Excel can generate headers in the report. Do not depend on generated labels for a handoff that needs specific names and units.
- Header mode 3. The supplied inputs include a heading row and it should be displayed. Use both grouping and amount ranges starting at their headings.
- Total depth 0, 1 or 2. Use 0 for no totals, 1 for the grand total, and 2 when the grouping has the levels needed for grand total and subtotals. For instance, City and Platform allow each city to have a subtotal across its platforms.
- Negative total settings. Use −1 for the grand total at the top or −2 for the analogous grand total and subtotals at the top where supported by the group levels.
Automatic settings can infer headings from the source data. For a reproducible exercise, always know whether row 1 is present. The examples keep header and total settings visible so there is no guessing about a hidden or generated line. Microsoft currently marks GROUPBY as Microsoft 365 in its function catalogue. Confirm that your Excel version and update channel offer it. A compatible workbook can still use older methods for readers whose editions lack GROUPBY.
Lab 1. Sum amount by city, then restrict the source to delivered orders
Set up an Orders worksheet with the following fields in A1:I11. Amount, Qty and Minutes are numeric. The source shows one row per order. The labels FreshGo and MarketRush are fictional practice names. Keep those labels as shown for the later grouping tasks.
| Order ID | Date | City | Platform | Category | Qty | Amount | Minutes | Status |
|---|---|---|---|---|---|---|---|---|
| BLK-1001 | 2 Nov 2026 | Pune | FreshGo | Dairy | 2 | 64 | 9 | Delivered |
| BLK-1002 | 2 Nov 2026 | Nashik | FreshGo | Fruits | 3 | 270 | 12 | Delivered |
| AMN-1003 | 3 Nov 2026 | Pune | MarketRush | Snacks | 1 | 110 | 14 | Delivered |
| BLK-1004 | 3 Nov 2026 | Nagpur | FreshGo | Fruits | 2 | 240 | 11 | Cancelled |
| AMN-1005 | 4 Nov 2026 | Kolhapur | MarketRush | Dairy | 4 | 232 | 16 | Delivered |
| BLK-1006 | 4 Nov 2026 | Pune | FreshGo | Bakery | 5 | 150 | 8 | Delivered |
| BLK-1007 | 5 Nov 2026 | Solapur | FreshGo | Home | 1 | 1299 | 18 | Delivered |
| AMN-1008 | 6 Nov 2026 | Sambhaji Nagar | MarketRush | Staples | 3 | 195 | 10 | Returned |
| BLK-1009 | 7 Nov 2026 | Pune | FreshGo | Snacks | 2 | 220 | 13 | Cancelled |
| BLK-1010 | 8 Nov 2026 | Nashik | FreshGo | Fruits | 1 | 90 | 17 | Delivered |
- Enter City in K1 and All-status order amount in L1. These are outside the source ranges. Keep K2:L8 open for the results.
- In K2 enter
=GROUPBY(C2:C11,G2:G11,SUM,0,1,1). City defines the grouping field, and Amount supplies the numeric values. The 0 excludes input and output field headers, 1 adds a grand total, and the last 1 sorts City ascending. - Expect six city rows plus the grand total. Find Pune and trace the four amounts 64, 110, 150 and 220. They add to ₹544. This is a group subtotal across orders of all statuses.
- Verify the bottom total ₹2,870 separately with
=SUM(G2:G11). In a spare cell=ROWS(K2#)reports seven rows because the spill includes the grand-total row. This report has six city categories. - In a different free area, try
=GROUPBY(C2:C11,G2:G11,SUM,0,0,-2). This sorts by Amount descending and leaves out the grand total. Solapur with ₹1,299 leads, followed by Pune with ₹544. Omitting the total makes those six city rows easier to reuse in a chart.
| City | All-status amount | Delivered amount |
|---|---|---|
| Kolhapur | 232 | 232 |
| Nagpur | 240 | No delivered rows |
| Nashik | 360 | 360 |
| Pune | 544 | 324 |
| Sambhaji Nagar | 195 | No delivered rows |
| Solapur | 1299 | 1299 |
| Grand total | 2870 | 2215 |
Make the change in membership visible
In N1:O1 enter City and Delivered order amount. In N2 enter the following expression. It supplies the same source arrays and the same group rule as before. The final comparison produces one TRUE or FALSE for each of the ten source rows.
=GROUPBY(C2:C11,G2:G11,SUM,0,1,1,I2:I11="Delivered")
- There are seven Delivered source records. Nagpur and Sambhaji Nagar have none, so they have no output row in this filtered result. Four city groups and a grand total remain.
- Pune loses the Cancelled 220 and retains 64, 110 and 150. The result is ₹324. The all-status figure of 544 remains correct under its other definition.
- Solapur, Nashik and Kolhapur keep all their records in this fixture. The grand total becomes ₹2,215. Reconcile the reduction of ₹655 with the two Cancelled orders totaling 460 and one Returned order of 195.
- A city with no Delivered rows differs from one with Delivered rows whose amounts add to zero. Build a separate list of expected cities and a report policy if the output must show both.
Trace the Pune group from four rows to a filtered total
Read all matching city rows
Pune appears in four records. Attach each amount to its ID.
Aggregate their amounts
64 plus 110 plus 150 plus 220 gives 544.
Apply the status filter to source rows
The cancelled 220 fails the Delivered test. It is omitted before grouping.
Compare the new subtotal
Three Delivered orders remain for Pune with a total of 324. This measures a smaller population.
Lab 2. Group by city and platform, then check the subtotals independently
On Orders, make room at Q2 through S14 for a multi-field report. The manager now needs the contribution of each source platform for every city. A grouping key now has two parts. Pune FreshGo and Pune MarketRush belong to different detail groups even though both share the Pune city label. The extra field increases the output width by one before you add any measures.
=GROUPBY(C2:D11,G2:G11,SUM,0,1,1)
- Put City, Platform and Amount in Q1:S1 and place the formula in Q2. The ranges cover ten aligned input rows. C through D supplies City followed by Platform.
- Expect seven city-platform detail combinations. Pune belongs to two platform groups. Each other city belongs to just one in this fixture. With a grand total, the default display choice requested here gives eight rows.
- Find Pune FreshGo and add its three records, 64, 150 and 220. The sum is ₹434. Pune MarketRush has one record of 110. The two details add to the known city total ₹544.
- Use the grand total of ₹2,870 to compare with Lab 1. The number of detail rows changed but the records eligible for aggregation did not change.
- Replace the total-depth argument 1 with 2 to add category subtotals. Look specifically for the subtotal across Pune's groups. It should give ₹544. The subtotal summarizes the same source members represented by its platform rows.
Do not sum the displayed result column when it includes detail totals, city subtotals and a grand total. The same transaction contributes at more than one level. Use the single grand total, sum the source directly, or build a detail-only GROUPBY with total depth 0 and add only those group results. For a chart, make clear whether it shows one bar per city or one bar per city-platform group. A totals row should not become another city or platform on the axis.
For an alternative display, set the total-depth argument to −1 in the grand-total-only formula. The same ₹2,870 goes to the top of the display. Do not hard-code a total as "the last number in the column" if you also allow a report layout option that puts it first. Compute a separate control total from the source when other formulas need a stable cell.
Use hierarchy to connect city and platform correctly
By default GROUPBY treats later fields within earlier ones for hierarchical sorting. This lets you inspect Platform within City and request supported subtotal levels. Microsoft's table relationship setting uses independent field sorting and does not support subtotals. Use a hierarchy when the reader needs to see which platform detail belongs to each city. Experiment with a scratch output if you are comparing the display options. Verify the actual city-platform identity rather than assuming each visible position still represents the same group.
Aggregate two measures with the appropriate units
Qty and Amount are contiguous columns in this exercise. In a free area try =GROUPBY(C2:C11,F2:G11,SUM,0,1,1). Both measures are added separately. In Pune it shows 10 units and ₹544. Across all cities it shows 24 units and ₹2,870. The group label applies to both. The numbers use different units and should be given separate column labels.
Change just the aggregation for a different question. A platform average is the amount sum divided by the eligible amount count for that platform. FreshGo has seven numeric amounts totaling ₹2,333, so its average is about ₹333.29. MarketRush has three amounts totaling ₹537, so its average is ₹179. The grand average of ten orders is ₹287. Taking the arithmetic mean of the two displayed group averages would give approximately ₹256.14, because it gives one weight to each platform. A grand average at the order level gives equal weight to individual orders. Format both reports with their real unit and title.
For counts, decide what you mean by “count of orders.” In this fixture every ID is populated and unique. Group City and apply COUNTA to A2:A11 to count the populated IDs. This produces Pune 4 and overall 10. Counting numeric Amount entries with COUNT gives the same result on clean data. If you clear one amount while its ID stays present, the number of known amounts and the number of order records diverge. Counting the rows that have valid IDs communicates which definition you chose.
Show contribution relative to a stated denominator
Priyanka's manager also needs to know what fraction of the total comes from Pune. For the all-status source, divide its known ₹544 by ₹2,870 to get approximately 18.95%. Run the following and apply a percentage format to the amount result. PERCENTOF uses the sum of a subset divided by the sum of the whole supplied set.
=GROUPBY(C2:C11,G2:G11,PERCENTOF,0,1,1)
Expect Solapur at about 45.26%, Pune at 18.95% and the grand share at 100% on this nonzero fixture. Since percentage formatting rounds visible figures, a hand-addition of the displayed rounded values can vary slightly from 100%. Use the underlying values for a numerical reconciliation.
- Name the denominator. For the all-status share the denominator is ₹2,870. For a Delivered-only group amount divided by all delivered amounts, the denominator is ₹2,215. On that different population, Pune's ₹324 represents roughly 14.63%.
- Do not silently mix totals. ₹324 divided by ₹2,870 answers yet another question, Pune's delivered contribution relative to all order amounts. Give it an explicit label.
- Check for a zero denominator. If there is no amount basis, a percentage cannot be calculated by ordinary division. Decide how to show that condition before sending a report.
- Keep the units identifiable. An amount and its proportional share may appear beside each other, but they need distinct labels and formats. Verify a known amount and its share on a calculator.
When a manager asks for both amount and percentage, walk through one city with its actual figures. It makes the filtered population visible. If the filtering rule later changes to one store, the number of included cities and the amount denominator can both change. Document that the measure describes the currently included records rather than promising a stable percentage.
Check the source boundaries and keep the report current
Use an Excel Table to include new records
A formula with C2:C11 and G2:G11 knows exactly those ten worksheet rows. Typing a new order in row 12 can leave both old ranges unchanged. To tie the report to its growing source, select the ten records with headings and create an Excel Table named tblGroupOrders. On the same sheet but outside the Table or on a separate report sheet, use the references below. A Table column reference supplies the body values, which is why the header setting here is 0.
=GROUPBY(tblGroupOrders[City],tblGroupOrders[Amount],SUM,0,1,1)
In a new copy extend the Table with one record for Pune. Use ID BLK-1011, 9 Nov 2026, Pune, FreshGo, Dairy, 2 units, ₹125, 11 minutes and Delivered. Confirm the Table boundary includes the row. Expect Pune ₹669 and overall ₹2,995. The city count stays six because Pune was already present. In the original fixed-range formula, the total remains 2,870. The changes are useful controls: city count alone could make this report appear current even when a new order was left out.
Recreate the Delivered formula with named fields and verify that the appended row also adds ₹125 there. Pune becomes ₹449 and overall Delivered amount becomes ₹2,340. The original and appended totals reflect their own inputs. Mark the fixed teaching outputs separately and reset to the original data for the remaining examples.
Give an empty population a clear outcome
Suppose the reader selects a status in J2. Test exactly the same condition that the GROUPBY filter will use. The expected result for Delivered is four city rows and a grand total. If the test selection does not occur, returns should explain that no records qualify instead of treating a text message as a group or substituting an unmeasured zero.
=LET(statusChoice,$J$2,includeRows,tblGroupOrders[Status]=statusChoice,
IF(SUM(--includeRows)=0,"No orders for this status",
GROUPBY(tblGroupOrders[City],tblGroupOrders[Amount],SUM,0,1,1,includeRows)))
On the original Table, selecting Delivered gives ₹2,215. Selecting Cancelled gives two city groups, Nagpur ₹240 and Pune ₹220, with total ₹460. Selecting an unused exact string such as Awaiting approval gives the no-orders message. A filter based on a source column with error cells needs separate handling. A report should expose whether any rows were left unclassified when the filter was built.
Inspect a suspicious extra group before combining it
In a practice copy add an extra space after the City of BLK-1009. The report could display two visually similar Pune categories with ₹324 and ₹220. Both came from records present in the order export. Compare the original text length in the two cells and look for source whitespace. A carefully chosen cleaning rule can make them one category again. TRIM helps with ordinary spaces and some exported data may contain other kinds of whitespace that require explicit handling.
Changing category spelling is a data decision. Keep the raw City column and write a cleaned column beside it, then group by the cleaned values. Check that the two labels represent the same city before merging them. For records with unassigned cities, decide whether to show an explicit Unassigned category and include its amount, or exclude them from the city view and report the excluded amount separately. A reliable grouping should reconcile its categories plus documented exceptions to the intended source total.
Build the same city summary when GROUPBY is unavailable
Copy the ten original records to a new practice sheet. On an Excel edition supporting SORT and UNIQUE, use two formulas to create the category list and calculate each amount. Put City and Amount in K1:L1. Make sure the cells below both formulas are clear.
- In K2 enter
=SORT(UNIQUE(C2:C11)). It creates six city names in ascending order without an extra total row. - In L2 enter
=SUMIFS(G2:G11,C2:C11,K2#). The criteria reference reads all the city names spilled from K2 and calculates a sum for each. Confirm the two output columns line up. - In a separate location such as N2, enter
=SUM(G2:G11)for ₹2,870. Keeping the total out of the category area leaves room for the list to grow if you later use Table references. - Compare a known result such as ₹544 for Pune with the GROUPBY exercise. If the receiving edition lacks dynamic arrays entirely, use a correctly configured PivotTable or an explicit list of cities with a filled-down SUMIF or SUMIFS.
GROUPBY returns a formula output. A PivotTable is a workbook report object with its own fields, layout and options. It can be convenient when a person needs to move fields, use a compatible slicer or inspect details. For a PivotTable check its source and refresh behavior in your edition and workbook settings. Microsoft documents auto-refresh in supported contexts and manual refresh steps for other cases. Neither report style fixes a source range configured for the wrong number of rows. Use the same known change to verify each.
A multiple-field report can also use multiple SUMIFS conditions. For Pune and FreshGo, enter =SUMIFS(G2:G11,C2:C11,"Pune",D2:D11,"FreshGo") to get ₹434. To produce a larger alternate report, list the combinations you want or use a PivotTable. Ensure the city-platform pair list reflects the reporting question. Missing combination, zero amount, and no amount received can be three different states.
Practice with the original ten orders
Start again from the clean Orders fixture. Use free cells for each test so the spills cannot cross one another. Give each report a heading with its grouping field and measure. The fixtures in these exercises all give their arguments as data-only ranges.
Count order IDs by city
Use =GROUPBY(C2:C11,A2:A11,COUNTA,0,1,1). It counts the nonempty ID values in each city. Pune shows 4. Across the six city groups the ten valid ID cells give a grand total of 10. If an ID is missing or duplicated, validate that case separately before interpreting the count as distinct orders.
Find each store’s average amount
Use =GROUPBY(D2:D11,G2:G11,AVERAGE,0,1,1). FreshGo gives 333.2857… and MarketRush gives 179. A format with two decimals displays 333.29 and 179.00. The grand order average is 287. It is not the average of the two groups because they contain different numbers of orders.
Sort city amount descending without a totals row
Use =GROUPBY(C2:C11,G2:G11,SUM,0,0,-2). Results start Solapur ₹1,299, Pune ₹544 and Nashik ₹360. The sort number refers to field two, because the City label is field one in the result. The 0 total-depth setting leaves only categories.
Sum only Delivered amounts by city
Use =GROUPBY(C2:C11,G2:G11,SUM,0,1,1,I2:I11="Delivered"). One inclusion decision is supplied per record. Pune gives ₹324. Total is ₹2,215. The two cities without qualifying rows have no group in the result.
Count units by store
Use =GROUPBY(D2:D11,F2:F11,SUM,0,1,1). There are 16 units for FreshGo, eight units for MarketRush and 24 overall. SUM of Qty answers a different question from counting orders. FreshGo's seven orders contributed 16 units.
Find the highest order amount within each status
Use =GROUPBY(I2:I11,G2:G11,MAX,0,0,1). Cancelled has maximum ₹240, Delivered ₹1,299, Returned ₹195. Adding those three maxima would have no interpretation as the order total. The output describes an extreme within each group.
Compare category totals for all orders and for FreshGo only
For all orders, use =GROUPBY(E2:E11,G2:G11,SUM,0,1,-2). Read Home 1299, Fruits 600, Snacks 330, Dairy 296, Staples 195 and Bakery 150. Total is 2870. For FreshGo use =GROUPBY(E2:E11,G2:G11,SUM,0,1,-2,D2:D11="FreshGo"). Read Home 1299, Fruits 600, Snacks 220, Bakery 150 and Dairy 64. Total is 2333 and Staples has no matching record.
Write the reason for one result in your own words. “Dairy contributes 296 from all stores, but only 64 from FreshGo because MarketRush contributed the other order of 232.” This proves you know how the groups and filter work. A correct number without a definition may become misleading as soon as the report changes.
Cross-check the number of amounts as well as their sum
A colleague may receive an exported order before its amount is available. An empty amount cell is different from a recorded numeric zero. Try this change in a copy of the original ten rows. Clear only the amount for BLK-1001. Leave its ID and City. Use the fixed source ranges here so you can compare the changed and untouched copies.
- Sum the amounts by city. The numeric Pune subtotal is now ₹480. The difference is the missing ₹64. The sum across all available amounts is ₹2,806.
- Count the IDs by city. Pune still has four IDs, and there are ten overall. The order was not removed from the source.
- Count the numeric amounts by city. Use
=GROUPBY(C2:C11,--ISNUMBER(G2:G11),SUM,0,1,1). This tests each original value and converts the true or false result to 1 or 0 before grouping. Pune shows three numeric values. There are nine numeric amounts overall. - Compare the report if you enter numeric zero instead. The sum of Pune amounts stays ₹480. Now there are four numeric Pune amounts. This distinguishes the two source states even though the totals are identical.
On the blank test state, the average of measured Pune amounts is 480 divided by three, or ₹160. If you want the sum of known amounts per recorded order, the denominator is four and the result is ₹120. Label that result as a measure based on the available subtotal. It should not claim the missing price was measured. The two formulas describe different reporting choices.
For a shared workbook, a small coverage panel could show total order IDs, numeric amount count and unresolved rows. Return to the untouched fixture after testing and verify the counts match again. That makes the fixture a useful control before a new export. It also prevents a chart from looking complete simply because every city had some known amount.
Troubleshoot the summary by comparing its input contracts
The first group or the heading line is unexpected
Check which first row you passed. =GROUPBY(C1:C11,G1:G11,SUM,3,1,1) includes the headings in both inputs and asks to display them. The earlier data-only version starts in row 2 and leaves them out. If you accidentally use header mode 3 with data-only input, its first entries are treated as headings instead of ordinary records. In the fixture that could take the first Pune amount of 64 out of the population. Test one known first record before trusting a rearranged report.
Every array is the same height but one came from another population
C2:C11 and G2:G10 have different lengths and need correction. Using G3:G12 only makes the lengths match. It still shifts the amount belonging to BLK-1002 to the row for BLK-1001. Compare the same record at the first and last array positions. Choose named columns from the same Table or match keys explicitly when using different sources.
Totals have misleading labels or incorrect numeric types
- Use amount language carefully. The source has Cancelled and Returned amounts. A figure titled “Paid sales” would need eligible-payment evidence. All-status order amount describes the available measure.
- Inspect typed inputs. If an export supplies a text amount formatted with a currency symbol, determine how to parse and validate it. Do not assume a number format can change the type.
- Calculate the correct summary. Count order IDs for record coverage, count numeric amounts for measurement coverage, and sum amounts for money. Group count and grand number of records are distinct quantities.
- Leave room for new groups. A sixth city result fits a short area, but a seventh may spill into another report. Give each view adequate space or its own sheet.
If a new workbook shows an unknown function, check the spelling and try a minimal data-only formula. A compatible older method can produce the same grouping and measure. Make sure its source ranges, filtering behaviour and totals match before replacing any live report.
Quiz with explained answers
Why do four Pune orders become one row in the first lab?
City is the single grouping field. All four records have Pune as their category, and the SUM calculation combines their amounts. The returned Pune row shows ₹544. The source still has four Pune orders in separate rows so someone can trace the total.
Why do Nagpur and Sambhaji Nagar disappear in the Delivered-only report?
Neither has a Delivered order. The filter drops ineligible records before grouping, leaving no record to create either category. A genuine eligible zero amount would be an observation that could form a group. Add an explicit all-cities list if the report requires categories without observations.
Which argument setting sorts Solapur's highest amount to the top in a one-group-field report?
Use −2 for sort_order. The first output position is City, and the second is Amount. A negative sign orders from largest to smallest. In a report with two grouping fields, Amount would occupy the third output position instead.
What total follows from FreshGo 434 and MarketRush 110 within Pune?
₹544 for the Pune subtotal. Those are disjoint groups within the same city. The grand total across all cities is a separate result. Adding the entire hierarchical output would repeat some of the same source orders.
Why is the average across all ten orders not the mean of 333.29 and 179?
Those group averages describe different numbers of orders. Seven belong to FreshGo and three to MarketRush. An order-level average divides the combined ₹2,870 by ten, giving ₹287. Taking the simple mean of group averages gives each platform equal weight instead.
Where do headings come from when you use data-only fields with header mode 0?
Type them separately in the worksheet. The grouping input has no first heading row and the result uses no field header line. If selecting source headlines as part of the input and preserving them in the output, use the appropriate header mode on aligned ranges starting with those headings.
Interview questions you can answer from practice
How would you explain an aggregation to a teammate who has never used GROUPBY?
I would circle the four rows for Pune, extract their four amounts and add them on paper. GROUPBY does that for every distinct city. I would show which numeric column is summarized and whether we include cancelled orders. That links the report cell to its contributing records.
How do you validate a hierarchy with two grouping fields?
Find a group with both detail categories and independently check its subtotal. Pune FreshGo has ₹434 and Pune MarketRush has ₹110, so Pune is ₹544. Verify each detail against its source orders. Then compare the grand total to the original source total rather than summing all displayed levels.
How would you keep an aggregate report up to date when records are appended?
Use structured Table references for aligned fields and verify the next row is inside the Table. I would append a test row with a known category and amount. The original city count may stay the same while its sum grows. If a PivotTable is used, confirm its range and refresh behaviour separately.
What does a count of ten in a report prove about the data?
It depends on what was counted. COUNTA on complete populated IDs counts ten recorded entries. It does not prove ten unique IDs unless duplicates are checked. COUNT on a numeric amount column verifies its numeric coverage. I compare both to expected record counts before sending the report.
How would you choose between GROUPBY and a PivotTable?
Use GROUPBY when a formula spill with explicit grouping rules and formula-driven inputs fits the workbook. Use a PivotTable if an interactive report object, field rearrangement or supported detail tools is important. Compare the eligibility rule, aggregates, source coverage and refresh behaviour in the reader's actual edition.
Revision cards
- Choose the grouping field. It defines whose records are aggregated together.
- Choose one measure deliberately. Sum amounts, count eligible orders or average measured numbers.
- Match by source row. Group fields, measured fields and filter decisions must describe the same records.
- Make headers and totals explicit. Use the output shape that fits the downstream work.
- Do not re-add report levels. Parent subtotals repeat the contributions of their detail groups.
- Test one known change. A verified Table append should update the correct group and the grand total.