Pivot Table Issues

How to Summarize Category and Subcategory Amounts in Excel

Huda QurayshiHuda Qurayshi Nov 2, 2026 869 views

Question details

The user needs to create an outline-style summary of amounts grouped by main categories and subcategories.

How to Summarize Category and Subcategory Amounts in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Organizing raw spreadsheet data containing Amount, Category, and Subcategory columns into a structured, easily readable financial or quantitative summary.
Observed behavior
The data is currently listed in standard rows and columns, and requires a flexible method to group, expand, filter, and automatically calculate the total amounts for each category tier.
Before you start

Ensure your dataset has clear, unique column headers (e.g., Category, Subcategory, Amount) and remove any completely blank rows or columns within the data range before proceeding.

Solution 1Recommended

Use an Excel PivotTable to Group and Summarize Data

Creating a PivotTable is the most flexible and efficient way to summarize amounts by multiple categories, allowing you to expand or collapse data effortlessly.

PivotTables are built-in Excel tools designed to extract significance from a large, detailed data set. By placing fields in specific areas, you can create a tiered outline that automatically calculates subtotals and grand totals.

1
Select your dataset

Click on any single cell inside your data range, or manually highlight the columns containing your Category, Subcategory, and Amount headers and data.

2
Insert the PivotTable

Navigate to the 'Insert' tab on the top ribbon and click on 'PivotTable'. In the dialog box that appears, choose to place the PivotTable on a 'New Worksheet' or select a destination in your 'Existing Worksheet', then click OK.

3
Arrange the Category Rows

Look at the PivotTable Fields pane on the right side of your screen. Drag the 'Category' field down into the 'Rows' area. Next, drag the 'Subcategory' field and drop it immediately below 'Category' in the same 'Rows' area to create your outline structure.

4
Summarize the Amounts

Drag the 'Amount' field into the 'Values' area. Excel should automatically summarize this as 'Sum of Amount'. Your PivotTable will now display grouped amounts that you can expand or collapse using the +/- buttons next to the category names.

Use an Excel PivotTable to Group and Summarize Data
Troubleshooting Sum vs. Count: If the Values area says 'Count of Amount' instead of 'Sum', it means Excel detected blank cells or text in your Amount column. Click the field in the Values area, select 'Value Field Settings', and change the calculation to 'Sum'.
Powerful Data Analysis

Group and Summarize Data Seamlessly with WPS Spreadsheet

WPS Spreadsheet provides a robust and completely free PivotTable feature, making it incredibly easy to summarize, filter, and analyze multi-layered data like categories and subcategories without complex formulas.

  1. 1. Open your data in WPS Spreadsheet: Launch WPS Office and open your workbook containing the Category, Subcategory, and Amount columns.
  2. 2. Insert a PivotTable: Go to the 'Insert' tab on the ribbon and click 'PivotTable'. Confirm your data range is correct and click 'OK'.
  3. 3. Configure the PivotTable fields: In the side panel, drag 'Category' and 'Subcategory' into the Rows box, and drag 'Amount' into the Values box to instantly generate your tiered summary.
Fully compatible with Microsoft Excel (.xlsx) files and existing PivotTablesIntuitive drag-and-drop interface for fast, error-free data groupingLightweight application that handles large datasets smoothlyFree alternative featuring comprehensive data analysis and charting tools
microsoft office alternative - wps office

Frequently Asked Questions

Can I sort the summarized amounts from highest to lowest?

Yes. Right-click any numerical value inside the Amount column of your generated PivotTable, hover over 'Sort', and select 'Sort Largest to Smallest'. This will organize your categories based on their total amounts.

How do I update the summary if I add new data to the original spreadsheet?

PivotTables do not update automatically when source data changes. To update your summary, click anywhere inside the PivotTable, navigate to the 'PivotTable Analyze' (or 'Options') tab on the ribbon, and click 'Refresh'.

Can I collapse the subcategories to only show the main category totals?

Yes. You can click the minus (-) icon next to any main category name in the PivotTable to hide its subcategories. To collapse all of them at once, right-click a main category, select 'Expand/Collapse', and choose 'Collapse Entire Field'.

Is it possible to display the amounts as percentages instead of currency or numbers?

Yes. Right-click an amount value in your PivotTable, select 'Show Values As', and choose '% of Grand Total' or '% of Column Total' to view the proportion each category contributes to the whole.