I replaced my Excel PivotTables with GROUPBY, and my reports now update themselves

I replaced my Excel PivotTables with GROUPBY, and my reports now update themselves

Published Nov 24, 2026, 7:00 AM EST Tony Phillips is a senior author at How-To Geek with over a decade of experience working with documents, data, and digital productivity tools. Holding a dual-honors degree in Linguistics and Hispanic Studies, he combines technical expertise with a passion for making complex topics easy to understand. Before joining How-To Geek in 2024, Tony worked as a document producer, data manager, legal document specialist, and content creator. He has also proofread and edited more than 3 million words of academic and professional writing. While Tony specializes in Microsoft 365, particularly Excel, his interests extend far beyond Office. He enjoys testing software, exploring open-source projects, discovering useful companion apps, and finding ways to customize and optimize Windows. Whether he's building spreadsheets, evaluating new tools, or uncovering hidden features, Tony enjoys helping readers get more from their technology. Outside of tech, he enjoys spending time with his dog, watching football, astrophotography, gardening, and golf. For years, PivotTables were my default solution for summarizing data in Excel. But recently, while reviewing one of my personal finance workbooks, I realized many of those reports were simply grouping records and calculating totals, something Excel's GROUPBY function can do with a single formula. For the straightforward summaries that make up much of my day-to-day reporting, GROUPBY turned out to be simpler, easier to maintain, and fully automatic. I'm not replacing every PivotTable I build, though. PivotTables still win when I need interactivity, drill-down analysis, or Data Models. Many of my PivotTables were simpler than I realized A realization while reviewing my workbook I originally built this workbook to keep an eye on my spending habits. As the workbook grew, I added separate PivotTables to summarize spending by category, merchant, payment method, and month. At the time, creating those reports felt like the obvious choice. PivotTables are usually the first thing I reach for when I need a summary. The more I looked at those four reports, though, the more I noticed that they were all doing essentially the same thing. Each one was grouping records by a single field and calculating a total. Once I looked past the PivotTable interface, I realized I was repeating the same reporting pattern four times. For reports that need both row and column groupings, I'd probably use PIVOTBY instead. The reports in this workbook only summarize spending by a single field, so GROUPBY is the better fit. I replaced four PivotTables with four formulas The same reports with less maintenance The first report I rebuilt was spending by category: =GROUPBY(tblSpending[Category],tblSpending[Amount],SUM) That single formula recreated the category report. From there, creating the rest of the reports was satisfyingly repetitive. To summarize spending by merchant, payment method, or month, I only needed to change the grouping column. The overall formula structure remained exactly the same. Sitting side by side, the reports looked almost identical. I even kept totals enabled in both versions, so there was very little to separate them visually. I did anticipate one possible sticking point: the monthly summary. PivotTables can group dates automatically, whereas GROUPBY relies on the values in the source data. To avoid that issue, I'd already included a Month column in the workbook, which made recreating the report straightforward. My reports now update themselves No refresh button required The biggest benefit didn't become obvious until I started adding new transactions. To test the setup, I added another purchase to the source table. The PivotTables stayed exactly as they were. Microsoft announced a PivotTable Auto Refresh feature in 2025, but more than a year later, I'm still waiting for it to reach my version of Excel. In fact, I got so tired of waiting that I built my own VBA-based workaround that refreshes PivotTables automatically. Until Auto Refresh finally arrives, manually refreshing PivotTables remains the reality in the workbooks I use today. GROUPBY doesn't have that problem, however. The affected totals changed automatically, and the monthly summary adjusted itself without any intervention from me. For a workbook that I update regularly, that small distinction makes a big difference. I no longer have to remember whether a report is showing current information or whether I forgot to refresh it after adding new data. GROUPBY feels more like modern Excel It becomes part of the worksheet Once I'd been using GROUPBY for a while, I noticed another benefit. Unlike a PivotTable, a GROUPBY report is just another spilled formula output. That means I can treat it like any other dynamic array. I can sort it, filter it, reference it from other formulas, or use it as the source for a chart without leaving the worksheet. For example, I took my spending-by-category summary, used the DROP function to exclude the grand total row, and then used the SORT function to rank the categories from highest spending to lowest: =SORT(DROP(B3#,-1),2,-1) Because the report spills directly into the grid, Excel treats it like any other range. The spill-range operator (#) references the entire GROUPBY output, making it easy to feed directly into other dynamic-array functions. I then used the sorted spill range as the source for a chart. When I added a brand-new spending category to the source data, the GROUPBY report expanded automatically, the sorted report expanded with it, and the chart gained a new bar without any additional setup. PivotTables can power charts and dashboards too, of course, but they remain separate report objects rather than formula outputs that live directly in the worksheet. GROUPBY outputs live directly in the grid alongside functions like FILTER, SORT, TAKE, and DROP, making the workbook feel more connected and easier to build on. PivotTables still win when I need these features Where GROUPBY doesn't replace them Despite how much I've enjoyed using GROUPBY, there are still situations where PivotTables remain the better tool: Slicers and interactive filtering. If I'm building a dashboard that needs user-controlled filters, PivotTables are still far more convenient. Drill-down analysis. Double-clicking a PivotTable value to see the underlying records remains one of Excel's most useful reporting features. Data Models and Power Pivot. Once multiple tables, relationships, and larger analytical models enter the picture, PivotTables pull far ahead. That's why I don't see GROUPBY as a PivotTable replacement in every scenario. The two tools solve different problems. Rethinking my default reporting tool I haven't stopped using PivotTables, and I don't plan to. They're still one of Excel's most powerful reporting tools when the job calls for interactive analysis or more advanced data modeling. What has changed is my default approach. When I need a straightforward grouped summary, I no longer automatically build a PivotTable. More often than not, a single GROUPBY formula gives me the same result while staying up to date automatically and integrating naturally with the rest of my workbook.

Original Source

Read the full article at Howtogeek →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.