Summarize Large Excel Reports by Group
Question details
Summarize a large report by groups in Column A, including group details, counts, sums, and maximum dates.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A report contains organization groups in Column A, company values in Column G, repeated details in Columns C–F, and numeric values in Columns M–U.
- Observed behavior
- The desired output is a group-level summary with counts, sums, and the latest date for each group.
Ensure every column has a header and that numeric and date fields contain valid numbers and dates. Check whether identical Column A values should be combined across the entire report or treated as separate consecutive groups.
Create a PivotTable for a flexible group summary
Use a PivotTable to produce a compact summary with counts, sums, and maximum dates for each group.
A PivotTable combines matching Column A values even when they appear in separate parts of the source report. If consecutive blocks with the same value must remain separate, add a unique block identifier to the source data and use it as a row field.
Select a cell in the report, choose Insert > PivotTable, confirm the data range, and select where to place the PivotTable.
In the PivotTable Fields pane, drag the Column A header to Rows. Add the headers for Columns C–F to Rows if those details are consistent within each group.
Drag the Column G header to Values. Open its Value Field Settings and select Count to count nonblank company entries.
Drag each required numeric field from Columns M–U to Values and select Sum in Value Field Settings. Add the date field to Values and select Max, then apply a date number format to that value field.
Use PivotTable Design > Report Layout > Show in Tabular Form to put row fields in separate columns. Review the results and use PivotTable Analyze > Refresh after source data changes.

Add grouped totals with Excel Subtotal
Use Subtotal when you want summary rows within the source report rather than a separate PivotTable.
Build a grouped report with a WPS PivotTable
Use WPS Spreadsheets to group report rows and calculate counts, sums, and maximum dates in a PivotTable.
- 1. Open the report: Open the Excel file in WPS Spreadsheets and select a cell in the data range.
- 2. Insert a PivotTable: Choose Insert > PivotTable, confirm the source range, and choose a location for the summary.
- 3. Add group fields: Drag the Column A field to Rows. Add consistent group-detail fields to Rows if you need them in the summary.
- 4. Set summary calculations: Drag the company, numeric, and date fields to Values. Use the value field settings to choose Count, Sum, and Max as appropriate, and format the maximum date as a date.

Frequently Asked Questions
Will a PivotTable keep separate blocks with the same group name?
No. A PivotTable combines matching group values. To keep consecutive blocks separate, add a unique block identifier to the source data and place it in the PivotTable Rows area.
How do I count companies in Column G?
In a PivotTable, drag the Column G field to Values and choose Count in Value Field Settings. This counts nonblank entries, not necessarily distinct company names.
How do I show the latest date for each group?
Add the date field to the PivotTable Values area, select Max in Value Field Settings, and apply a date number format. The source dates must be valid Excel dates.
Can I add both counts and sums with Subtotal?
Yes. Choose Data > Subtotal for each calculation and clear Replace current subtotals on subsequent passes to retain the earlier results.
Why does one group appear on multiple PivotTable rows?
A detail field added to Rows may contain different values within that group. Check Columns C–F and remove varying fields from Rows or decide which value should represent the group.




