How to Use Different Summary Functions for Each Column in Excel
Question details
The user needs to apply different aggregation functions, such as sum, count, and max, to distinct columns simultaneously when summarizing data grouped by date.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Summarizing large datasets grouped by specific fields where each numeric column requires a unique mathematical calculation.
- Observed behavior
- Users need a streamlined method or formula to calculate and display multiple calculation types across different columns in a single summarized view.
Ensure your dataset is organized in a proper tabular format with clear column headers without blank rows, and check your Excel version, as modern array functions are limited to newer releases.
Summarize Multiple Columns Using a PivotTable
PivotTables provide a visual, widely compatible method to apply varying summary functions to different columns without writing formulas.
This method is highly recommended because it works across all versions of Excel and provides an interactive interface for changing data views.
Highlight your entire dataset, navigate to the 'Insert' tab on the ribbon, and click 'PivotTable'.
In the PivotTable Fields pane, drag your grouping field (such as 'Date') into the 'Rows' area.
Drag the columns you wish to summarize into the 'Values' area. You can drag the same field multiple times if you need different summaries for it.
Click the drop-down arrow on each field within the 'Values' area, select 'Value Field Settings', and choose your desired calculation (e.g., Sum, Count, Max). Click 'OK'.

Apply Dynamic Summaries Using the GROUPBY Function
For Microsoft 365 users, the GROUPBY function combined with HSTACK allows for powerful, dynamic array calculations directly within your spreadsheet cells.
Automate Summaries with Power Query
Power Query is an excellent tool for repeating workflows and is supported in older versions like Excel 2013 and 2016.
Use WPS Spreadsheet to Summarize Data Effortlessly
WPS Spreadsheet provides powerful data analysis tools, including fully featured PivotTables, making it simple to apply different summary functions to your columns without memorizing complex formulas.
- 1. Open Your Dataset: Launch WPS Spreadsheet and open your existing data file.
- 2. Create a PivotTable: Navigate to the 'Insert' tab on the top menu and select 'PivotTable'.
- 3. Assign Custom Summaries: Drag your columns into the 'Values' area, click the drop-down menu for each, choose 'Value Field Settings', and independently set them to Sum, Count, or Max.

Frequently Asked Questions
Why can't I use the GROUPBY function in my Excel?
The GROUPBY function is a relatively new dynamic array function that is exclusive to Microsoft 365. If you are using Excel 2021, 2019, 2016, or older, you will need to rely on PivotTables or Power Query for these calculations.
Can I use the Subtotal tool to apply different functions to columns?
The built-in 'Subtotal' feature typically applies one selected mathematical function (like Sum) to all chosen columns at once. To apply different functions to different columns simultaneously, utilizing a PivotTable is the standard approach.
Will my PivotTable automatically update if I change the original data?
No, PivotTables do not update automatically when source data changes. You must right-click anywhere inside the PivotTable and select 'Refresh' to update the summary calculations.
Can I use multiple summary functions on the exact same column?
Yes. In a PivotTable, you can drag the exact same column into the 'Values' area multiple times. You can then assign a different function (for example, one for Sum and one for Average) to each instance of the column.




