SUM was the very first Excel function I ever learned, and I’d guess that’s true for a huge number of people. It’s the gateway function — the one that shows you Excel isn’t just a digital notebook but an actual calculating tool. Even after years of working with more advanced formulas, I still use SUM constantly, because so much of spreadsheet work eventually comes down to adding numbers together.
Here’s a complete breakdown of how to use it well, beyond just the basics.
What Is the SUM Function in Excel?
SUM adds together all the numbers in a selected range or list of values. It’s the most fundamental arithmetic function in Excel, and it forms the basis for countless more advanced formulas, including SUMIF, SUMIFS, and even parts of financial models that combine SUM with other functions.
Required Data
To use SUM, you need numeric values, either as:
- A range of cells
- Individual numbers typed directly
- A combination of ranges and individual numbers
- Multiple non-contiguous ranges
Text and blank cells within a selected range are automatically ignored.
Basic Syntax
=SUM(number1, [number2], ...)
- number1 is required — your first number or range.
- number2 and beyond are optional, letting you add as many additional numbers or ranges as needed, up to 255 arguments.
Step-by-Step Instructions
- Click the cell where you want the total to appear.
- Type
=SUM(. - Select the range of cells you want to add together, or hold Ctrl while clicking to select multiple non-contiguous cells.
- Close the parenthesis and press Enter.
Example:
=SUM(B2:B20)
This adds up every number in the range B2 through B20.
Alternatively, you can select a range and use the AutoSum button (the Σ symbol) on the Home tab, which automatically inserts a SUM formula guessing the most likely range based on your data.
Practical Examples
Example 1: Adding a Column of Expenses
=SUM(C2:C25)
This totals a column of monthly expenses.
Example 2: Adding Multiple Ranges Together
=SUM(B2:B10, D2:D10)
This adds two separate ranges into a single combined total, useful when your data is split across non-adjacent columns.
Example 3: Adding Specific Cells and a Range Together
=SUM(B2:B10, 500, C15)
This combines a range, a manually typed number, and a single cell reference all in one formula.
Example 4: Running Totals
=SUM($B$2:B2)
When copied down a column, this creates a running (cumulative) total, since the starting reference stays locked with $ signs while the ending reference moves down with each row.
Example 5: Summing an Entire Column
=SUM(B:B)
This adds every number in column B, regardless of how many rows contain data — useful for datasets that grow over time, though it can slow down very large workbooks if overused.
Example 6: SUM Combined With IF for Conditional Totals
While SUMIF is the standard tool for conditional sums, an array-based alternative using SUM and IF together looks like this:
=SUM(IF(A2:A20="North", B2:B20))
In older Excel versions, this requires pressing Ctrl+Shift+Enter to work as an array formula; in modern Excel with dynamic arrays, it works with a normal Enter.
Common Mistakes to Avoid
- Selecting the wrong range and including totals rows — A very common error is summing a range that accidentally includes a subtotal or total row, which doubles the actual figure.
- Text-formatted numbers being silently skipped — If numbers are stored as text (often from imported CSV or web data), SUM will ignore them entirely without any warning, leading to totals that appear too low.
- Forgetting that SUM ignores errors incorrectly — Actually, SUM does NOT ignore errors; if any cell in your range contains an error value like #DIV/0!, your entire SUM result will also show an error. Use SUM combined with IFERROR or AGGREGATE if you need to sum a range while ignoring errors.
- Using SUM when a condition is needed — SUM adds everything in the range unconditionally; if you only want to add values meeting a certain criterion, you need SUMIF or SUMIFS instead.
- Double-counting through overlapping ranges — When combining multiple ranges in one SUM formula, make sure they don’t overlap, or you’ll count some cells twice.
Troubleshooting Tips
- Total is lower than expected: Check for text-formatted numbers in your range; select the range and look at the status bar at the bottom of Excel, which shows a count that should match your expected number of numeric entries.
- SUM returns an error instead of a number: This means at least one cell in your range contains an error value. Trace back to find which cell is causing it, or wrap your formula with
=SUM(IFERROR(B2:B20, 0))entered as an array formula to treat errors as zero. - Running total doesn’t work correctly when copied: Make sure your starting cell reference uses absolute references ($) so it doesn’t shift when the formula is copied down.
- SUM of an entire column feels slow: For very large datasets, consider limiting your range to the actual data size (like B2:B10000) instead of the entire column, which can improve performance in large workbooks.
Real-World Use Cases
- Personal budgeting totaling monthly expenses across categories.
- Sales teams adding up total revenue across a quarter or year.
- Finance departments calculating total liabilities, assets, or payroll costs.
- Inventory management summing total stock quantities across warehouses.
- Students totaling points earned across multiple assignments or exams.
- Event budgeting adding up costs across vendors, venues, and supplies.
Best Practices
- Use AutoSum for quick totals, but always double-check the range it selects automatically, since it can sometimes include or exclude rows incorrectly.
- Lock reference cells with $ signs whenever building running totals or formulas you plan to copy across multiple rows or columns.
- Combine SUM with IFERROR when working with data that might contain error values, to avoid a single bad cell breaking your entire total.
- Regularly verify that imported numeric data is actually recognized as numbers, not text, especially with data pulled from external systems.
- Move to SUMIF or SUMIFS as soon as you need any kind of condition attached to your total, rather than trying to filter data manually first.
Frequently Asked Questions
Why does SUM return an error when one cell in my range has an error? Unlike some functions, SUM does not skip over error values — if any single cell contains an error like #DIV/0! or #N/A, the entire SUM result becomes that same error. Wrapping the range with IFERROR, or using AGGREGATE with error-ignoring options, resolves this.
Can SUM add values across multiple sheets at once? Yes, using a 3D reference. A formula like =SUM(Jan:Dec!B2) adds the value in cell B2 across every sheet from “Jan” through “Dec,” which is useful for consolidating monthly data into an annual total.
Does SUM count text that looks like a number? No — if a number is stored as text (often signaled by left-alignment or a small green triangle in the cell), SUM silently excludes it from the total rather than throwing an error, which can make totals appear lower than expected.
What’s the fastest way to sum a column without typing a formula? Select the column or range and look at the status bar along the bottom of the Excel window — it automatically displays a live sum (along with average and count) of the selected cells without needing any formula at all.
Is SUM different from SUBTOTAL? Yes. SUM always includes every cell in the range, including hidden or filtered rows. SUBTOTAL, when used with function number 109, only adds visible cells, ignoring anything hidden by a filter — useful for reports where filtered-out rows shouldn’t count toward the total.
Final Thoughts
SUM might be the simplest function in Excel, but it’s also the most foundational. Nearly every financial model, budget tracker, and report you’ll ever build relies on SUM at its core, often layered underneath more advanced formulas. Getting comfortable with its nuances — how it handles errors, text, and multiple ranges — pays off across everything else you do in Excel.