Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
SUBTOTAL applies a chosen aggregation — 9 for SUM, 1 for AVERAGE, 3 for COUNTA — and crucially skips rows hidden by a filter and any nested SUBTOTALs, so totals stay correct as you filter.
Topic:SUM & aggregation=SUBTOTAL(9, A2:A4)=SUBTOTAL(9, A2:A4)Computed by a real spreadsheet engine on the sample data below.
| Sales |
| 100 |
| 200 |
| 300 |
=SUBTOTAL(9, A2:A4)→600
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Multiply ranges together row by row and sum the result — ideal for weighted totals.
How-toSum the 30 calendar days ending on a chosen date with SUMIFS, including timestamps on the final day and excluding future rows.
Error fixSUM returns 0 or the wrong total in Excel and Google Sheets — fix numbers stored as text, filtered ranges, manual calculation mode, and circular references.
How-toAdd up an entire column with SUM. Total a whole column or a fixed range — identical in Excel and Google Sheets.
How-toBuild a cumulative running total with a SUM and a clever anchored reference that grows as you copy it down. Works in both apps.
How-toTotal amounts that fall in a given month with SUMIFS and two date bounds. Works the same in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: