How to Calculate a Grand Total Without a Separate Totals Column in Excel
Question details
The user needs to calculate a grand total by summing values across multiple columns and rows in a single formula, avoiding the creation of an intermediate totals column.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating and summing up a large dataset spread across a two-dimensional range.
- Observed behavior
- The user is looking for an efficient formula to directly output the grand total of the entire dataset without calculating individual row or column totals first.
Ensure that the cells you want to sum contain numeric values, as text or numbers formatted as text might cause calculation errors or be ignored by the SUM function.
Use the SUM Function for a Contiguous 2D Range
The SUM function can handle two-dimensional ranges directly, eliminating the need for intermediate calculation columns.
Instead of summing each row in a new column and then summing that column, you can define a bounding box of data within the SUM function. Excel will aggregate every numeric value inside that rectangular area.
Click on the cell where you want the grand total to appear.
Type `=SUM(` into the cell or the formula bar.
Click and drag your mouse over the entire range of data across multiple columns and rows (e.g., B2:F100). Alternatively, type the range directly.
Type a closing parenthesis `)` and press Enter to display the grand total.

Sum Multiple Non-Adjacent Ranges
If your data is spread across different blocks that are not next to each other, you can calculate a grand total in one formula by separating ranges with a comma.
Calculate Totals Effortlessly in WPS Spreadsheet
WPS Office provides a powerful, free Spreadsheet tool that fully supports advanced formulas, 2D range calculations, and seamless compatibility with Microsoft Excel.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook.
- 2. Enter the SUM Formula: Click on your desired total cell and type `=SUM(`.
- 3. Select Data Ranges: Drag your cursor to highlight all the rows and columns you want to include, then type a closing parenthesis and press Enter.

Frequently Asked Questions
Why is my SUM formula returning 0 instead of the grand total?
This usually happens if the numbers in your selected range are formatted as text. Select the cells, check for a small green or yellow warning triangle in the corner, and click 'Convert to Number', or change the cell format to General/Number in the Home tab.
Can I exclude hidden rows when calculating a grand total across multiple columns?
Yes. If you want to ignore hidden rows, use the SUBTOTAL function instead of SUM. For example, `=SUBTOTAL(109, B2:F100)` uses the '109' argument to sum the range while ignoring any manually hidden rows.
How do I sum a 2D range across multiple sheets without creating intermediate totals?
You can use a 3D reference in your SUM formula. For example, `=SUM(Sheet1:Sheet3!B2:F100)` will calculate the grand total of the range B2:F100 across Sheet1, Sheet2, and Sheet3 simultaneously.




