How to Do a SUM Function in Excel

“do a sum function in excel” comes up constantly, so this page leads with the exact answer, gives you a tool to try it on your own numbers, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

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.

ƒxAverage, Median & ModeLive

n = 7 · Sum = 103.00 · Min = 9.00 · Max = 21.00

Average (mean)
14.71

7 values

Median
15.00
Mode
15.00
=AVERAGE(A1:A7) · =MEDIAN() · =MODE.SNGL()
=SUM(A1:A10)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “do a sum function in excel”. Start on a copy or a tiny sample, keep the affected formula 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. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. If you take one thing from this page on “do a sum function in excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

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 SUM to add text numbers — values stored as text are skipped silently.
  • Using SUMIF when you need several conditions; reach for SUMIFS instead.

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

People reach this page typing “how to do sum function in excel” and “how to do the sum function in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “how to do sum function in excel”, “how to do the sum function in excel” all point at the one operation explained on this page, which is why they all lead here.