ADVERTISEMENT
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Office Learner
ADVERTISEMENT
  • Home
  • Browse by Category
    • Word
      • Word Basics
      • Word Data Entry
      • Word Formatting
      • Word Templates
      • Word Tips
    • Excel
      • Excel Basics
      • Excel Shortcuts
      • Excel Charts
      • Data Validation
      • Conditional Formatting
      • Data Analysis with Excel
      • Dynamic Arrays
      • Advanced Excel Topics
      • Developing Excel Related Tools
      • Essential Excel Books
      • Excel for Accountants
      • Excel for Finance
      • Excel Functions and Formulas
      • Excel Pivot Tables
      • Excel Power BI
      • Excel Power Query
      • Excel Templates
      • Excel Training & Courses
      • Macros and Excel VBA
    • PowerPoint
      • Animation
      • PowerPoint Basics
      • PowerPoint Templates
  • About
  • Office Books
  • Courses
No Result
View All Result
  • Home
  • Browse by Category
    • Word
      • Word Basics
      • Word Data Entry
      • Word Formatting
      • Word Templates
      • Word Tips
    • Excel
      • Excel Basics
      • Excel Shortcuts
      • Excel Charts
      • Data Validation
      • Conditional Formatting
      • Data Analysis with Excel
      • Dynamic Arrays
      • Advanced Excel Topics
      • Developing Excel Related Tools
      • Essential Excel Books
      • Excel for Accountants
      • Excel for Finance
      • Excel Functions and Formulas
      • Excel Pivot Tables
      • Excel Power BI
      • Excel Power Query
      • Excel Templates
      • Excel Training & Courses
      • Macros and Excel VBA
    • PowerPoint
      • Animation
      • PowerPoint Basics
      • PowerPoint Templates
  • About
  • Office Books
  • Courses
No Result
View All Result
Office Learner
No Result
View All Result
Home Excel

Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

Tanjila Rashid by Tanjila Rashid
June 17, 2026
in Excel
0
Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

Published: June 17, 2026 | Category: Excel | Topic: Dynamic Arrays & New Functions

If you have spent years wrestling with PivotTables every time you need grouped summaries from your data, 2026 has brought you a better answer. Microsoft has officially rolled out two powerful new functions — GROUPBY and PIVOTBY — to Microsoft 365, and they are changing the way Excel users think about data aggregation. These functions combine the analytical power of PivotTables with the flexibility of formulas, letting you summarize data dynamically right inside a cell without a single click on the Insert tab.

In this tutorial, you will learn exactly what GROUPBY and PIVOTBY do, how they differ, and how to use them to build powerful, refreshable summaries in seconds.

What Are GROUPBY and PIVOTBY?

GROUPBY and PIVOTBY are dynamic array functions — they return results that spill automatically into multiple cells. They were designed to replicate PivotTable-style aggregation using formula syntax, which means they update instantly when your source data changes and can be nested inside other formulas.

GROUPBY groups data by one or more row fields and calculates an aggregate (like SUM, AVERAGE, or COUNT) for each group. Think of it as a one-dimensional summary — like a PivotTable with only row labels.

ADVERTISEMENT

PIVOTBY takes things further by adding column grouping too. It is the full two-dimensional equivalent of a PivotTable — rows on one axis, columns on the other, and values in the middle.

The GROUPBY Function: Syntax and Step-by-Step

The syntax for GROUPBY is:

=GROUPBY(row_fields, values, function, [field_headers], [total_depth], [sort_order], [filter_array])

Say you have a sales table with columns: Region (A), Salesperson (B), Product (C), and Revenue (D). To get total revenue by Region:

=GROUPBY(A2:A100, D2:D100, SUM)

That single formula returns a spilled array showing each unique region and its total revenue. No formatting required, no Refresh button — it updates automatically the moment new data is added.

Step-by-Step: Build a Revenue Summary by Region

Open your data workbook and ensure your sales data is in a named Table (press Ctrl+T to create one). Name it SalesData.

Click on an empty cell — for example, F2 — where you want the summary to appear.

Type: =GROUPBY(SalesData[Region], SalesData[Revenue], SUM, 3, 1)

Press Enter. Excel will spill the results downward automatically.

The third argument (3) shows field headers; the fourth argument (1) adds a grand total row at the bottom.

The PIVOTBY Function: Two-Dimensional Summaries

PIVOTBY extends GROUPBY by adding a column grouping dimension:

=PIVOTBY(row_fields, col_fields, values, function, [field_headers], [row_total_depth], [col_total_depth], [sort_order], [filter_array])

To build a cross-tabulation of Revenue by Region (rows) and Product (columns):

=PIVOTBY(SalesData[Region], SalesData[Product], SalesData[Revenue], SUM)

The result is a full pivot grid — every unique Region is a row, every unique Product is a column header, and the intersecting cells contain the summed revenue. This is the equivalent of building a PivotTable in about three seconds.

Key Parameters You Need to Know

function: The aggregate — SUM, AVERAGE, COUNT, MIN, MAX, MEDIAN, or any scalar-returning function including LAMBDA.

field_headers: 0 = no headers, 1 = include source headers, 2 = generate headers automatically, 3 = include generated headers (recommended default).

total_depth: 0 = no totals, 1 = grand total only, 2 = subtotals plus grand total.

filter_array: A TRUE/FALSE array to include only specific rows before aggregating. Great for date-range or category filters.

Combining with FILTER and SORT

One of the biggest advantages over PivotTables is that GROUPBY and PIVOTBY work seamlessly inside formula chains. To get total revenue by region but only for Q2 (where column E holds the quarter label):

=GROUPBY(A2:A100, D2:D100, SUM, 3, 1, , E2:E100="Q2")

GROUPBY vs PivotTables: When to Use Which

Use GROUPBY/PIVOTBY when you need formula-driven summaries that update instantly, want to embed results inside other formulas, or are building dashboards where manual PivotTable refreshes are error-prone.

Use PivotTables when you need advanced formatting, slicers for interactive filtering, custom calculated fields, or are sharing with users who prefer a traditional interface.

Availability

GROUPBY and PIVOTBY are available in Microsoft 365 (Current Channel) as of 2026. They require an active Microsoft 365 subscription. Excel 2021 standalone and earlier versions do not support these functions — colleagues on older versions will see #NAME? errors.

Conclusion

GROUPBY and PIVOTBY represent a genuine leap forward in how Excel handles data aggregation. By bringing PivotTable power into the formula bar, Microsoft has made it far easier to build dynamic, connected summaries that update without user intervention. Whether you are a data analyst building automated reports or a business user wanting cleaner summaries without fiddling with PivotTable layouts, these two functions deserve a prominent place in your toolkit.

Try replacing your next PivotTable with a GROUPBY formula and see how much faster your workflow becomes. Drop your experiments in the comments below, and subscribe to officelearner.net for more Excel tips published weekly.

Tags: Excel 2026 new functionsExcel dynamic array functionsGROUPBY function ExcelPIVOTBY Excelreplace PivotTable formula
ADVERTISEMENT
Previous Post

Microsoft Forms Advanced Branching in 2026: Create Smart Surveys That Adapt to Every Respondent

Next Post

Word Copilot Draft from Prompt: Write Full Documents in Seconds

Tanjila Rashid

Tanjila Rashid

Next Post
Word Copilot Draft from Prompt: Write Full Documents in Seconds

Word Copilot Draft from Prompt: Write Full Documents in Seconds

ADVERTISEMENT
  • Trending
  • Comments
  • Latest
The Evolution of Microsoft Word: A Brief History

The Evolution of Microsoft Word: A Brief History

May 27, 2026

How to Merge and Center Selected Cells in Excel (4 Ways)

May 27, 2026
How to Use Excel SUMIF to Sum Values Greater Than 0

How to Use Excel SUMIF to Sum Values Greater Than 0

May 27, 2026
Copilot in Excel: Analyze Data with Natural Language

SharePoint Copilot: Find & Summarise Docs Instantly

May 27, 2026
Spreadsheet Layout

What is spreadsheet? and how it works!

0
Spreadsheet Layout

Spreadsheet Layout

0
Spreadsheet Layout

IF function of Google Sheets – usage and formula examples

0

5 Google Sheets tricks that you always need!

0
Word Copilot Draft from Prompt: Write Full Documents in Seconds

Word Copilot Draft from Prompt: Write Full Documents in Seconds

June 17, 2026
Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

June 17, 2026
Microsoft Forms Advanced Branching in 2026: Create Smart Surveys That Adapt to Every Respondent

Microsoft Forms Advanced Branching in 2026: Create Smart Surveys That Adapt to Every Respondent

June 16, 2026
PowerPoint Copilot Outline-to-Deck Generator in 2026: Create Full Slide Decks from a Simple Outline

PowerPoint Copilot Outline-to-Deck Generator in 2026: Create Full Slide Decks from a Simple Outline

June 16, 2026

Recent News

Word Copilot Draft from Prompt: Write Full Documents in Seconds

Word Copilot Draft from Prompt: Write Full Documents in Seconds

June 17, 2026
Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

June 17, 2026
Microsoft Forms Advanced Branching in 2026: Create Smart Surveys That Adapt to Every Respondent

Microsoft Forms Advanced Branching in 2026: Create Smart Surveys That Adapt to Every Respondent

June 16, 2026
PowerPoint Copilot Outline-to-Deck Generator in 2026: Create Full Slide Decks from a Simple Outline

PowerPoint Copilot Outline-to-Deck Generator in 2026: Create Full Slide Decks from a Simple Outline

June 16, 2026
Office Learner

OfficeLearner is a place where you can learn PowerPoint, Excel, Word Data Analysis, and other Office related programs. We provide tips, how to guide and also provide Excel solutions to your business problems

Follow Us

DMCA.com Protection Status

Browse by Category

  • Clipchamp
  • Excel
  • Google Sheets
  • Microsoft 365
  • Microsoft Copilot
  • Microsoft Designer
  • Microsoft Forms
  • Microsoft Loop
  • Microsoft Sway
  • Microsoft Teams
  • Microsoft Viva
  • OneDrive
  • OneNote
  • Outlook
  • Planner
  • Power Automate
  • Power BI
  • PowerPoint
  • SharePoint
  • Teams
  • Word

Recent News

Word Copilot Draft from Prompt: Write Full Documents in Seconds

Word Copilot Draft from Prompt: Write Full Documents in Seconds

June 17, 2026
Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

Excel GROUPBY & PIVOTBY: The New Array Functions That Replace PivotTables

June 17, 2026
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2022 OfficeLearner - Free Excel, PowerPoint & Word Tutorial & Online Courses

No Result
View All Result

© 2022 OfficeLearner - Free Excel, PowerPoint & Word Tutorial & Online Courses

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.