New Tool Radar

AI for Data & Spreadsheets

How to Find Why a Spreadsheet Total Changes After Sorting or Filtering

Check whether the total uses SUM or SUBTOTAL, so a filter cannot silently change it.

Schematic with three numbered boxes: note total before, filter and read again, read the formula.

A total that changes when you sort or filter is usually a SUBTOTAL that only counts visible rows, or a SUM range that missed rows after a sort moved them. Knowing which function the total uses tells you whether the change is correct or an error. Check the formula before you trust the new total.

Checked on 2026-11-29. We did not run any tool for this guide. Every result below is an expected result, marked UNTESTED, for you to confirm on your own files.

Prerequisites

  • The sheet with the changing total
  • The total formula
  • A note of the total before sorting or filtering

Steps

1. Write down the total before

Note the total with no filter and no sort applied.

Expected result: The unfiltered total is written down.

2. Apply the filter and read the total

Apply the filter and read the total again.

Expected result: The filtered total is written down.

3. Read the total formula

Click the total cell and read the function: SUM counts all rows in the range, SUBTOTAL counts only visible rows.

Expected result: The function is named: SUM or SUBTOTAL.

4. Fix the formula to match the intent

If the total should cover all rows, use SUM. If it should cover visible rows only, use SUBTOTAL and say so.

Expected result: The formula matches the intent and the total is explained.

Worked example

A practice sales sheet totals 2,540 with no filter. Filtering to West showed 1,250, which is correct for SUBTOTAL.

Region Sales Visible after filter?
West 1250 Yes
East 860 No
North 430 No
Totals 2540

Expected result: The unfiltered total is 2,540 and the West filter shows 1,250, which matches the SUBTOTAL behaviour, so the formula is kept (UNTESTED – confirm it yourself.)

Verdict table

Check Expected result Pass?
Write down the total before The unfiltered total is written down. –
Apply the filter and read the total The filtered total is written down. –
Read the total formula The function is named: SUM or SUBTOTAL. –
Fix the formula to match the intent The formula matches the intent and the total is explained. –

Limits

  • A SUM range that does not cover the whole column will miss rows added later; use a table or a full-column range.
  • Sorting should never change a SUM total; if it does, a row was left out of the range.

Sources

See all