Excel SUM formula, plus AVERAGE, COUNT, MIN and MAX: the 5 functions every beginner needs
Most of what people do in Excel comes down to a few questions. What's the total? What's typical? What was the best day, and the worst? How many entries are there?
Five functions answer all of those. In this post you'll learn the Excel SUM formula and the AutoSum shortcut, then AVERAGE, MIN, MAX and COUNT. We'll use one small sales sheet throughout, so you can see how the answers relate to each other.
The example sheet
Pieter runs a coffee stand at a weekend market in Johannesburg, plus a few weekday pop-ups. He writes down each day's takings. On Wednesday he didn't trade, so he typed "Closed".
| A | B | |
|---|---|---|
| 1 | Day | Sales (R) |
| 2 | Mon | 1 250 |
| 3 | Tue | 980 |
| 4 | Wed | Closed |
| 5 | Thu | 1 430 |
| 6 | Fri | 2 075 |
| 7 | Sat | 2 640 |
| 8 | Total |
Every formula below looks at the same range, B2:B7. That means "from B2 down to B7".
How the Excel SUM formula works
SUM adds numbers. The pattern is:
=SUM(B2:B7)
Type it in B8, press Enter, and you get R8 375.
A few things are worth knowing from day one:
- Start with an equals sign. Without it, Excel treats what you type as plain text.
- Use a range, not a list of cells.
=SUM(B2:B7)is easier to read and check than=B2+B3+B5+B6+B7. Microsoft's own guidance recommends ranges for the same reason. - SUM skips text. The word "Closed" in B4 doesn't cause an error. SUM ignores it and adds the numbers. If you'd written
=B2+B3+B4+B5+B6+B7instead, the text in B4 would give you a#VALUE!error. - Don't type the numbers into the formula.
=1250+980+1430+2075+2640gives the right answer today, but nobody can check it easily, and it won't update when a figure changes.
You can also add separate blocks: =SUM(B2:B3, B5:B7) adds two ranges in one go.
The AutoSum shortcut (Windows and Mac)
You don't have to type SUM at all. Click the empty cell directly below your numbers (B8 here) and use AutoSum (some people search for it as "auto sum"):
- Windows: Alt+=
- Mac: Cmd+Shift+T
Excel guesses the range above the cell and shows it with a moving border. Check the guess, then press Enter.
You'll also find the AutoSum button on the Home tab and on the Formulas tab. It looks like the Greek letter sigma (Σ).
Two tips if you're on a Mac. Option+= is not the AutoSum shortcut, so don't rely on it. On many keyboard layouts it types a symbol instead. And if Cmd+Shift+T does nothing, use the Σ button on the Home tab.
Always look at the range AutoSum picks. It works upwards and tends to stop at the first blank cell or piece of text it meets. In Pieter's sheet, the word "Closed" may stop it at B5, so it suggests =SUM(B5:B7) and leaves out Monday and Tuesday. If that happens, drag over B2:B7 to fix the range before you press Enter.
AVERAGE: what's a typical day?
=AVERAGE(B2:B7) gives R1 675.
That's R8 375 divided by 5, not by 6. AVERAGE ignores text and empty cells in a range, so the closed Wednesday doesn't drag the average down.
Zeros are different. If Pieter had typed 0 instead of "Closed", AVERAGE would count it as a real day and divide by 6. The answer would drop to about R1 395.83.
So ask yourself: is this a day with no sales, or a day that didn't happen? Type a 0 for the first and leave it blank (or write a note) for the second.
MIN and MAX: the worst and best days
If you've ever wondered how to find the highest value in Excel, this is it:
=MAX(B2:B7) gives R2 640 (Saturday).
=MIN(B2:B7) gives R980 (Tuesday).
Like SUM and AVERAGE, both ignore text in the range. Together, MIN and MAX show you the spread. Pieter's best day earned more than two and a half times his quietest day. That's useful when he decides which weekdays are worth the trip.
COUNT and COUNTA: how many entries?
This is where beginners trip up most, because the two names sound almost the same.
| Formula | Result | What it counts |
|---|---|---|
=COUNT(B2:B7) |
5 | Cells that contain numbers |
=COUNTA(B2:B7) |
6 | Cells that aren't empty (numbers, text, anything) |
=COUNTBLANK(B2:B7) |
0 | Empty cells |
COUNT gives 5 because "Closed" is text. COUNTA gives 6 because every cell has something in it. COUNTBLANK gives 0 because nothing is empty.
Here's an easy way to remember it. COUNT counts numbers. The A in COUNTA stands for "all": it counts every cell that holds something.
The difference matters in real work. Say you have a list of payments and some cells say "Pending". COUNT tells you how many people have paid. COUNTA tells you how many entries you have in total. Use both and you can see who's still outstanding.
All five together
Here's Pieter's sheet with a small summary block next to it:
| D | E | |
|---|---|---|
| 1 | Summary | |
| 2 | Total | =SUM(B2:B7) → R8 375 |
| 3 | Average day | =AVERAGE(B2:B7) → R1 675 |
| 4 | Best day | =MAX(B2:B7) → R2 640 |
| 5 | Worst day | =MIN(B2:B7) → R980 |
| 6 | Days traded | =COUNT(B2:B7) → 5 |
Notice that you can check the formulas against each other. The average (R1 675) times the days traded (5) should equal the total (R8 375). It does. Quick cross-checks like this catch a lot of mistakes before anyone else sees them.
Another free check: select B2:B7 with your mouse and look at the status bar at the bottom of the Excel window. It usually shows the Sum, Average and Count of whatever you've selected, so you can compare them with your formulas.
Why these five matter for job tests
Basic Excel tests for admin, finance and office roles often start with exactly these functions. You might get a table of sales and be asked for the total, the average and the highest value. If you can write these five formulas without looking them up, and explain why COUNT and COUNTA give different answers, you're well prepared for that first section.
Practise it yourself
Reading about formulas only gets you so far. You remember them once your fingers have typed them a few times.
ExcelyourTraining has a short hands-on lesson for each of these, in a spreadsheet that runs in your browser. Your answer is checked the moment you press Enter.
Start with lesson 6. It's free, there's no sign-up and nothing to install.