Calculation Issues

How to Create a Large Excel Table with Multiple Sections and Calculate Totals

Huda QurayshiHuda Qurayshi Oct 29, 2026 868 views

Question details

Organize a large table into multiple sections, calculate totals for each individual section, and determine an overall grand total while preserving consistent formatting.

How to Create a Large Excel Table with Multiple Sections
Product
Excel
Device & OS
not provided
Scenario
Structuring large datasets across multiple categories within a single spreadsheet to calculate section-level and overall metrics.
Observed behavior
Requires a setup that computes individual section totals and a grand total without double-counting, while keeping a uniform visual style across all data blocks.
Before you start

Ensure your raw data is organized with clear column headers and a designated column that identifies which section or category each row belongs to.

Solution 1Recommended

Use the SUBTOTAL Function and Table Styles

This method relies on the SUBTOTAL formula to calculate accurate section totals that seamlessly roll up into a grand total without double-counting your data.

Using the standard SUM function for grand totals can lead to accidental double-counting if section totals are included in the range. The SUBTOTAL function solves this by ignoring other nested SUBTOTAL formulas within its referenced range.

1
Sort and group your data

Ensure your data is organized by section. Use the 'Sort' feature under the Data tab to group rows that belong to the same category or section together.

2
Add section total rows

Insert a blank row below each individual section to act as the summary row for that specific group.

3
Apply the SUBTOTAL formula to sections

In the summary cell for the first section, type `=SUBTOTAL(9, [Range])`, replacing '[Range]' with the cells you want to sum. The '9' tells Excel to perform a SUM calculation. Repeat this process for each section.

4
Calculate the grand total

At the very bottom of your table, create a Grand Total row. Enter the formula `=SUBTOTAL(9, [Entire Data Range])`. Excel will sum the individual rows while automatically ignoring the section totals you previously created.

5
Format for consistency

Select your entire dataset, navigate to the Home tab, and click 'Format as Table'. Choose a style to apply consistent colors, borders, and fonts across all sections.

Use the SUBTOTAL Function and Table Styles
Automatic recalculation: If you filter your table using the drop-down arrows in the headers, the SUBTOTAL function will automatically update to sum only the visible rows.
WPS Spreadsheet Feature

Create and Manage Multi-Section Tables Effortlessly in WPS Spreadsheet

WPS Spreadsheet provides powerful data grouping tools and beautiful Table Styles to help you organize multi-section data, calculate totals seamlessly, and format large tables in just a few clicks.

  1. 1. Open your data file: Launch WPS Spreadsheet and open the document containing your multi-section data.
  2. 2. Use automatic Subtotals: Select your dataset, navigate to the 'Data' tab, and click 'Subtotal' to instantly group your sections and insert calculated total rows.
  3. 3. Format the table: Go to the 'Home' tab and choose 'Format as Table' to quickly apply professional, consistent styling to all grouped sections.
One-click 'Subtotal' feature for automatic section grouping and calculations100% compatible with Microsoft Excel (.xlsx) formulas and formattingRich built-in table styles to maintain consistent professional designs
microsoft office alternative - wps office

Frequently Asked Questions

Why should I use SUBTOTAL instead of SUM for calculating sections?

Using the standard SUM function for a grand total might accidentally include both the individual rows and the section totals, leading to double-counting. The SUBTOTAL function is specifically designed to ignore other SUBTOTAL cells within its range, ensuring perfectly accurate grand totals.

Can I automatically generate these section totals without typing formulas manually?

Yes. You can use the built-in 'Subtotal' feature found in the Data tab. First, sort your data by the column that defines your sections, then highlight your data and click 'Subtotal'. The software will automatically group the rows and insert the necessary SUBTOTAL formulas for you.

How do I keep the formatting consistent when adding new data to the table?

The most effective way is to use the 'Format as Table' feature located on the Home tab. When your data is designated as a structured table, adding new rows to the bottom will automatically expand the table's formatting, alternating row colors, and validation rules to include the new entries.