Pivot Table Issues

Summarize Large Excel Reports by Group

Steve KSteve K Nov 14, 2026 868 views

Question details

Summarize a large report by groups in Column A, including group details, counts, sums, and maximum dates.

How to Summarize Large Excel Reports by Group
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.
Before you start

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.

Solution 1Recommended

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.

1
Insert a PivotTable

Select a cell in the report, choose Insert > PivotTable, confirm the data range, and select where to place the PivotTable.

2
Add group details

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.

3
Count company values

Drag the Column G header to Values. Open its Value Field Settings and select Count to count nonblank company entries.

4
Add sums and the latest date

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.

5
Arrange the summary

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.

Create a PivotTable for a flexible group summary
Check repeated details: If a detail in Columns C–F varies within a group, adding it to Rows can split that group into multiple lines. Decide which detail belongs in the summary before adding it.
Summarize reports in WPS Spreadsheets

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. 1. Open the report: Open the Excel file in WPS Spreadsheets and select a cell in the data range.
  2. 2. Insert a PivotTable: Choose Insert > PivotTable, confirm the source range, and choose a location for the summary.
  3. 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. 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.
Summarize large reports by organization or another group fieldCalculate counts, sums, and maximum dates in one reportOpen and edit Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interface
QA img-9

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.