ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Math
  3. The Excel SUM Function: A Beginner's Guide

The Excel SUM Function: A Beginner's Guide

By ExcelReady Team·Updated October 30, 2026·5 min read

The short answer

The Excel SUM function adds numbers. Type =SUM( then the cells to add, then ), for example =SUM(B2:B5) to add B2 through B5. A colon makes a range, and a comma adds separate cells or ranges, like =SUM(B2,B4:B5). SUM skips text and empty cells, so it doesn't break on gaps.

Key takeaways

  • =SUM(B2:B5) adds every cell from B2 to B5; the colon means "through".
  • A comma adds separate items: =SUM(B2,B5) adds only B2 and B5.
  • SUM ignores text and empty cells inside a range, including numbers stored as text.
  • SUM is safer than chaining cells with +, which returns #VALUE! when a cell holds a word.
  • Never include the total cell in its own range, or you create a circular reference.
On this page+
  1. What does the SUM function do in Excel?
  2. How to use the Excel SUM function, step by step
  3. Colon or comma: adding ranges and separate cells
  4. SUM vs the plus sign
  5. What does SUM ignore?
  6. Common SUM mistakes (and quick fixes)
  7. Where SUM fits in a job test
  8. Practise it

The Excel SUM function adds up numbers: a column of sales, a row of monthly costs, or a few cells scattered across a sheet. You type =SUM(, the cells to add, and ). This guide is for beginners and job seekers who want to write SUM correctly the first time and spot a wrong total before anyone else does.

What does the SUM function do in Excel?#

SUM returns the total of the numbers you give it. A function is a ready-made calculation with a name. You call it by typing =, the name, and the inputs inside parentheses. Those inputs are called arguments.

The syntax is:

Excel formula
=SUM(number1, [number2], ...)
  • number1 is required. It can be a number, a cell like B2 or a range like B2:B5.
  • number2 and later are optional. You can add up to 255 arguments, separated by commas.

How to use the Excel SUM function, step by step#

The quickest way to learn SUM is to total a real column. Here is a small revenue table:

ABC
1QuarterRevenueCosts
2Q148,00031,000
3Q252,50033,800
4Q361,20035,900
5Q458,90037,100
6Total
  1. Click B6, the cell for the total.
  2. Type =SUM(.
  3. Select B2:B5 with the mouse, or type it.
  4. Type ) and press Enter.
Excel formula
=SUM(B2:B5)

The result is 220,600. B2:B5 is a range: a block of cells written as the first cell, a colon, then the last cell. It means B2, B3, B4 and B5. The same formula in C6, =SUM(C2:C5), gives 137,800.

You don't have to type the formula at all. AutoSum and its Alt+= shortcut write it for you and guess the range.

Colon or comma: adding ranges and separate cells#

A colon means "from this cell to that cell". A comma means "and also this". Mixing the two lets one SUM handle almost any selection.

FormulaWhat it addsResult
=SUM(B2:B5)Q1 to Q4 revenue220,600
=SUM(B2,B5)Only Q1 and Q4106,900
=SUM(B2,B4:B5)Q1, plus the range Q3 to Q4168,100
=SUM(B2:C5)Every revenue and cost cell358,400
=SUM(B2:B5,1000)All revenue plus a typed 1,000221,600

The third row is a common test question: "total the revenue without Q2". Q1 is a single cell and Q3 to Q4 sit next to each other, so =SUM(B2,B4:B5) does it in one formula.

A block like B2:C5 covers two columns and four rows, so SUM adds all eight cells. Use it when you want one grand total. If you want separate totals per column, write one SUM per column instead.

SUM vs the plus sign#

SUM is shorter and safer than adding cells one by one with +. =B2+B3+B4+B5 gives the same 220,600, but it has two weaknesses:

  • It's easy to miss a cell. With 20 rows, a long chain of + is hard to check. A range is easy to read.
  • It breaks on words. If a cell holds text such as "n/a", =B2+B3 returns the #VALUE! error. SUM simply skips that cell.

You can still mix the two when it reads better. =SUM(B2:B5)-SUM(C2:C5) gives the profit for the year: 82,800. If you are new to typing formulas, start with how to write your first Excel formula.

What does SUM ignore?#

Inside a range, SUM adds only real numbers. It skips:

  • Empty cells. A gap in the column doesn't cause an error.
  • Text, such as "absent" or "TBC".
  • Numbers stored as text. These look like numbers but Excel treats them as words. They often sit on the left of the cell, sometimes with a small green triangle in the corner.
  • TRUE and FALSE values in cells.

Skipping text is usually helpful, but it can hide a problem. If a value was imported as text, SUM leaves it out without any warning, and your total is too low. A quick check is =COUNT(B2:B5), which counts the real numbers. If it is lower than the number of rows, something is stored as text.

One thing SUM does not skip is an error. If any cell in the range shows #N/A or #DIV/0!, SUM shows that error too. Fix the error in the source cell first.

Common SUM mistakes (and quick fixes)#

Most wrong totals come from a handful of mistakes. Excel warns you when a formula breaks, but not when it gives the wrong answer.

  1. The range misses a row. You added a new row under the data, but the formula still says B2:B5. Edit the range, or insert new rows inside it so it grows automatically.
  2. Numbers stored as text. Retype the value, or convert the cells to numbers. SUM then includes them.
  3. The total is inside its own range. =SUM(B2:B6) typed into B6 refers to itself. This is a circular reference: Excel shows a warning and usually returns 0. End the range one row above the total.
  4. A subtotal is counted twice. If a range includes a subtotal row and the rows it adds up, those numbers are counted twice. Keep subtotals out of the range.

Each of these, plus hidden decimals and manual calculation, is explained in why your Excel total is wrong and how to fix it.

Where SUM fits in a job test#

SUM is the first function most employers check, often together with AVERAGE, MIN and MAX. Once you can total a column, the next step is to describe it: AVERAGE, MIN and MAX give the mean, the smallest and the largest values, and MEDIAN and MODE show the typical value when one number is far from the rest. For office and admin roles, totals like these are a core skill, as covered in Excel skills for admin and office jobs.

If you need a total with a condition, such as "only the North region", SUM isn't the right tool. Use SUMIF for one condition or SUMIFS for several. The SUM function reference lists the syntax and more examples in one place.

Practise it#

Reading about SUM is not the same as typing it under time pressure. Practise SUM and AutoSum in a live spreadsheet: you'll total revenue, add separate cells with commas and combine a range with a single cell. Then find and fix three broken totals in the Debugging SUM lesson, or try the exercise on this page now.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Total the team's monthly expenses. Click B7, type =SUM(B2:B6) and press Enter.

fx
ABCD
1
Expense
March
2
Office rent
1850
3
Software
420
4
Travel
735
5
Supplies
168
6
Phone
95
7
Total
8
9
10

Tip: Start with =SUM( then give the first and last expense with a colon between them. Don't include B7.

Practise this in a lesson

LessonSUM and AutoSumAdd up a column of numbers with SUM, then let AutoSum write the formula for you.LessonDebugging SUMFind the three bugs behind most wrong totals: a range that misses a row, numbers stored as text, and a total that counts itself.Function guideSUMAdd up columns, rows and separate ranges with Excel's SUM function. Clear examples, common mistakes and a live practice exercise.

Frequently asked questions

How do I use the SUM function in Excel?

+

Click the cell where you want the total, type =SUM( then select or type the range, such as B2:B5, then type ) and press Enter. Excel shows the total in that cell.

What is the difference between a colon and a comma in SUM?

+

A colon makes a range, so B2:B5 means B2, B3, B4 and B5. A comma separates items, so =SUM(B2,B5) adds only B2 and B5.

Why does my SUM formula return 0?

+

Usually the numbers are stored as text, which SUM skips. They often sit on the left of the cell. Convert them to real numbers and the total updates.

Can SUM add cells from different columns?

+

Yes. Separate the ranges with commas, like =SUM(B2:B5,D2:D5), or use one block such as =SUM(B2:D5) to add every cell in three columns.

How many numbers can SUM add?

+

SUM accepts up to 255 separate arguments, and each argument can be a range with many cells, so in practice it can add a whole column.

Sources

  • SUM function - Microsoft Support
  • Use AutoSum to sum numbers - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What does the SUM function do in Excel?
  2. How to use the Excel SUM function, step by step
  3. Colon or comma: adding ranges and separate cells
  4. SUM vs the plus sign
  5. What does SUM ignore?
  6. Common SUM mistakes (and quick fixes)
  7. Where SUM fits in a job test
  8. Practise it

Keep reading

Math· 5 min read

AutoSum in Excel: The Alt+= Shortcut Explained

The Excel AutoSum shortcut is Alt+= on Windows and ⌘+Shift+T on a Mac. Click the empty cell below a column of numbers, press the shortcut, and Excel writes a SUM formula with a guessed range, such as =SUM(C2:C5). Check the highlighted range, then press Enter to accept it.

Math· 5 min read

AVERAGE, MIN and MAX in Excel With Examples

AVERAGE returns the mean of a range, MIN returns the smallest number and MAX returns the largest. All three take the same input: =AVERAGE(B2:B6), =MIN(B2:B6) and =MAX(B2:B6). They skip empty cells and text but count zeros, and =MAX(B2:B6)-MIN(B2:B6) shows how spread out the values are.

Math· 6 min read

MEDIAN and MODE in Excel: Find the Typical Value

MEDIAN returns the middle value of a range once it is sorted, and MODE returns the value that appears most often. Type =MEDIAN(B2:B8) or =MODE(D2:D11). Use MEDIAN instead of AVERAGE when one extreme value, like a founder's salary, would pull the average away from what is typical. MODE returns #N/A if nothing repeats.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free