In Excel: use =SUM(range), for example =SUM(A1:A10), or =SUMIF(range, criteria, sum_range) to add only the rows that match a condition.
n = 7 · Sum = 103.00 · Min = 9.00 · Max = 21.00
7 values
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
SUM adds every number in the range you give it, ignoring blanks and text so you do not have to clean the column first. It is the most-used function in any spreadsheet because totals are everywhere. When you only want some of the values, SUMIF (one condition) and SUMIFS (several) add just the rows that meet your criteria. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “insert subtotals in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
To total a column of sales in A1:A10, type =SUM(A1:A10). To total only the "North" region, =SUMIF(B1:B10,"North",A1:A10) adds the A-values whose B-cell says North. The AutoSum button (Alt+= on Windows) writes the SUM for you and guesses the range — handy, but always check the highlighted range is right. Every dashboard, invoice and budget ends in a total, which is why SUM — and its conditional cousins SUMIF and SUMIFS — is the first function worth mastering. Get it right and the rest of the sheet builds on solid ground. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Treat “insert subtotals in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.
Common mistakes
- Letting AutoSum guess a range that misses the top or bottom row — always check the outline.
- Summing a column that includes its own total cell, creating a circular reference.
- Expecting
SUMto add text numbers — values stored as text are skipped silently. - Using
SUMIFwhen you need several conditions; reach forSUMIFSinstead.
Frequently asked questions
SUM vs AutoSum?
AutoSum is just a button that writes a SUM formula for the range it guesses. The formula is identical; AutoSum only saves typing.
How do I sum with a condition?
Use SUMIF for one condition (=SUMIF(range, ">100")) or SUMIFS for several criteria across different columns.
Why does SUM ignore some cells?
SUM only adds numbers; cells holding text, including numbers stored as text, are skipped. Convert them with VALUE or by multiplying by 1.
Other ways people ask this
This guide also answers
- how to add subtotals in excel
- inserting subtotals in excel