GROUPBY function, he ended up with cleaner, self-updating reports that live directly inside the worksheet grid instead of hovering in separate PivotTable objects.
Before anyone holds a retirement ceremony for the PivotTable—a feature that has carried corporate finance departments on its back since the 1990s—it helps to separate the hype from the spreadsheet mechanics. GROUPBY is not a universal PivotTable replacement, and Microsoft itself documents clear boundaries around what the function does and where it runs. Still, for single-axis summaries that need to recalculate the instant a new row hits your ledger, this shift marks one of the clearest dividing lines between classic Excel and modern dynamic-array Excel.
Why Simple PivotTables Often Create Unnecessary Friction
When a workbook tracks ongoing transactions—personal budgets, IT asset inventories, helpdesk ticket logs, or departmental expenses—PivotTables carry a familiar tax. Every time you add rows or correct an amount in the source table, the report goes stale until you right-click and choose Refresh (or press Ctrl+Alt+F5 for Refresh All). Forget that single step before exporting a PDF or presenting in a meeting, and you are staring at yesterday's numbers.
Phillips hit that exact friction point in his spending workbook. Replacing each PivotTable with a single formula referencing an Excel Table named tblSpending eliminated the refresh ritual entirely:
=GROUPBY(tblSpending[Category],tblSpending[Amount],SUM)
Changing tblSpending[Category] to the merchant, payment method, or month column reproduced the remaining three summaries with an identical formula pattern. Visually, with totals turned on, the spilled outputs looked nearly indistinguishable from the PivotTables they replaced—except that adding a new purchase immediately recalculated the affected category total and monthly summary with zero manual intervention.
What About Microsoft's PivotTable Auto Refresh?
If you follow Microsoft 365 feature announcements, you might wonder why manual PivotTable refreshing is still part of this conversation. On July 25, 2025, Microsoft Excel Product Manager Valerie Kistrina announced PivotTable Auto Refresh for Windows and Mac, enabling automatic updates by default on new PivotTables and adding an Auto Refresh toggle under the PivotTable Analyze tab.
More than a year later, however, rollout reality remains uneven. Phillips noted that the feature still had not reached his version of Excel, forcing him to rely on a custom VBA macro until he switched to GROUPBY. Microsoft's own documentation backs up why many users still do not see the button: the announcement post (updated November 2, 2026) and Microsoft Support's PivotTable refresh documentation continue to describe PivotTable Auto Refresh as available to Microsoft 365 Insider / Beta Channel participants.
Even if you are running an Insider build or receive the toggle as it rolls out, Microsoft documents strict operational limits on PivotTable Auto Refresh:
- Local workbook data only: It does not automatically refresh PivotTables connected to external data sources.
- No simultaneous co-authoring: Auto Refresh is unsupported when multiple people are editing the workbook at the same time.
- No asynchronous sources: Asynchronous data feeds are excluded.
- Calculation mode dependency: Manual or Partial Calculation settings suspend automatic updates.
By contrast, GROUPBY is simply a worksheet formula. As long as Excel is set to Automatic calculation, it recalculates alongside SUMIFS, XLOOKUP, and every other cell in your workbook—no Insider channel or VBA workaround required.
Inside the GROUPBY Function (and Its Two-Axis Sibling PIVOTBY)
Microsoft's documentation defines GROUPBY as a Microsoft 365 function designed to group data along one axis and aggregate associated values via a formula. Its full syntax offers far more control than the three-argument version suggests:
=GROUPBY(row_fields, values, function, [field_headers], [total_depth], [sort_order], [filter_array], [field_relationship])
Understanding those optional arguments turns GROUPBY from a neat trick into a genuinely flexible reporting engine:
- Required inputs (
row_fields,values,function): You supply one or more grouping columns, one or more value columns to summarize, and an aggregation function—either an explicit lambda or an eta-reduced function likeSUM,AVERAGE,COUNT, orPERCENTOF. You can even pass a vector of functions to return multiple metrics at once. - Headers (
field_headers): By default, Excel infers headers automatically (for example, if the first value is text and the second is numeric), or you can force headers on or off using numeric codes0through3. - Totals (
total_depth): Defaults to automatic grand totals (and subtotals when grouping by two or more columns). Passing0hides totals completely,1shows grand totals only,2shows grand and subtotals, and negative values (-1,-2) move totals to the top of the report. - Built-in sorting (
sort_order): Positive numbers sort ascending by column position across your row fields followed by value columns; negative numbers sort descending. - Inline filtering (
filter_array): Accepts a one-dimensional Boolean array matching the row height ofrow_fieldsto exclude unwanted rows on the fly. - Multi-column behavior (
field_relationship): Chooses between hierarchical grouping (0, default) and independent table sorting (1) when multiple row fields are supplied.
What if your report needs both row and column groupings—say, spending categories down the rows and months across the columns? That is where PIVOTBY steps in. PIVOTBY handles two-axis summaries using the same formula-driven model, though Microsoft explicitly reminds users that despite producing PivotTable-like grids, PIVOTBY is a worksheet function rather than an actual PivotTable object.
Chaining Dynamic Arrays, Spill Ranges, and Charts
One of the biggest practical payoffs in Phillips's workflow had nothing to do with skipping the Refresh button. Because GROUPBY outputs a dynamic array, the summary lives natively in the worksheet grid rather than inside an isolated PivotTable container.
Using Excel's spilled range operator (#), any cell referencing the anchor cell of a spilled formula—such as B3#—tracks the entire output even as rows are added or removed. To build a ranked chart without including the grand total bar, Phillips chained DROP and SORT directly onto his GROUPBY output:
=SORT(DROP(B3#,-1),2,-1)
Here is what that expression assumes and accomplishes: DROP(B3#,-1) strips off the final row of the B3# spill range (assuming the grand total sits at the bottom), and SORT(...,2,-1) sorts the remaining rows by the second column in descending order. When Phillips pointed a chart at that sorted range and later added a brand-new spending category to tblSpending, the GROUPBY output expanded, the sorted range resized with it, and the chart picked up the new bar automatically.
A helpful Excel optimization: If you do not need the grand total row displayed in your GROUPBY range at all, you can skip DROP and SORT entirely and let GROUPBY's built-in arguments do the heavy lifting:
=GROUPBY(tblSpending[Category],tblSpending[Amount],SUM,,0,-2)
In that single formula, 0 suppresses the grand total row and -2 sorts the output in descending order by the second column (the summed values). Keeping =SORT(DROP(B3#,-1),2,-1) still makes plenty of sense when you want the grand total visible in B3# for reading, while maintaining a clean, total-free sorted range strictly to feed a chart. Either way, confirm that your chart's data series tracks the expanding worksheet range as expected rather than locking onto static cell coordinates.
Operational Guardrails Before You Migrate a Workbook
Replacing PivotTables with dynamic-array formulas introduces a few new rules of the road that can trip up otherwise tidy spreadsheets:
- Keep formulas outside your Excel Table: Microsoft's dynamic-array documentation explicitly notes that spilled array formulas are not supported inside Excel Tables themselves. Keep raw transactions in a structured table like
tblSpending, and placeGROUPBYformulas in standard worksheet cells with clear space below and to the right. - Watch out for
#SPILL!collisions: If anything—text, stray formatting with values, or merged cells—blocks the expanding output area ofGROUPBYwhen new categories appear, Excel throws a#SPILL!error until the obstruction is cleared. - Avoid closed-workbook spill links: Dynamic-array references and the
#operator do not support closed external workbooks. Closing the source workbook causes linked spilled-array formulas to return#REF!when refreshed. - Build explicit Month-Year keys for date summaries: PivotTables automatically group raw dates into months, quarters, and years.
GROUPBYgroups by the literal values in the column you pass it. Phillips avoided trouble because his table already included aMonthcolumn. If your dataset spans more than 12 months, avoid grouping on bare month names like "November," which will silently merge November 2025 and November 2026 together; use a month-year text key (such asTEXT([@Date],"yyyy-mm")) or a normalized first-of-month date column instead. - Verify Excel edition compatibility: Microsoft lists
GROUPBYas a Microsoft 365 function. If you share workbooks with colleagues running perpetual-license versions such as Excel 2016, 2019, or 2021, they may not be able to evaluateGROUPBYformulas without upgrading or switching back to classic PivotTables orUNIQUE/SUMIFScombinations.
GROUPBY vs. PivotTables: Knowing Which Tool to Reach For
When the dust settles, the smartest takeaway is not that PivotTables are obsolete, but that they are no longer the only default choice for routine reporting.
| Capability | GROUPBY Formula | Classic PivotTable |
|---|---|---|
| Best suited for | Simple one-axis summaries that feed other formulas | Exploratory analysis, dashboards, and complex layouts |
| Automatic updates | Recalculates natively with worksheet formulas | Manual refresh for most users; Auto Refresh remains in Insider rollout with local-only limits |
| Date grouping | Requires precomputed date/month-year columns | Built-in automatic grouping by days, months, quarters, years |
| Interactive Slicers & Timelines | Not natively supported | Built-in point-and-click dashboard filtering |
| Drill-down to source rows | Not supported | Double-click any value to generate a detail sheet |
| Data Models & Power Pivot | Single-table/array scope | Multi-table relationships and DAX measures |
| Availability | Microsoft 365 Excel | Virtually all modern and legacy Excel editions |
If you are building an executive dashboard packed with Slicers, drilling into outlier cells to audit underlying invoices, or stitching multiple tables together in Power Pivot, PivotTables remain undefeated. For the everyday tracking sheets where you just want clean category totals that never lie to you because you forgot to hit Refresh—and for anyone tired of maintaining VBA refresh scripts just to keep a budget sheet honest—GROUPBY earns its spot as the new first instinct.
Summary Checklist for Trying GROUPBY Today
- Store your source records in a formatted Excel Table so structured references expand automatically as rows are added.
- Test
=GROUPBY(Table[GroupField],Table[ValueField],SUM)in an unobstructed worksheet area outside the table. - Add a dedicated
YYYY-MMcolumn if you plan to summarize dates by month across multiple years. - Check your Microsoft 365 version before sharing
GROUPBY-powered templates with users on perpetual Office licenses.
Want to dive deeper into modern spreadsheet workflows? Check out WindowsForum.com discussions on mastering structured table references, troubleshooting #SPILL! errors in dynamic arrays, and automating legacy PivotTables with VBA when Microsoft 365 Insider features aren't an option.
References
- I replaced my Excel PivotTables with GROUPBY, and my reports now update themselves How-To Geek · 2026-11-24T12:00:16+00:00
- GROUPBY function | Microsoft Support support.microsoft.com
- Keep data updated with PivotTable Auto Refresh in Excel techcommunity.microsoft.com