Functions Lesson 5 of 13
Excel Functions — SUM, AVERAGE, MIN, MAX, COUNT and ROUND
Use Excel's most common functions — SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, ROUND, ROUNDUP, MEDIAN and RANK — with AutoSum and a class grade example.
A function is a built-in formula with a name. Instead of =B2+B3+B4+…+B41, you write =SUM(B2:B41). Functions take arguments inside parentheses, separated by commas.
The essential five
| A | B | |
|---|---|---|
| 1 | Student | Grade |
| 2 | Ana | 88 |
| 3 | Ben | 72 |
| 4 | Carla | 95 |
| 5 | Dan | 81 |
| 6 | Ela | 90 |
| 7 | Sum | =SUM(B2:B6) |
| 8 | Average | =AVERAGE(B2:B6) |
| 9 | Highest | =MAX(B2:B6) |
| 10 | Lowest | =MIN(B2:B6) |
| 11 | Count | =COUNT(B2:B6) |
Results:
| A | B | |
|---|---|---|
| 7 | Sum | 426 |
| 8 | Average | 85.2 |
| 9 | Highest | 95 |
| 10 | Lowest | 72 |
| 11 | Count | 5 |
| Function | Returns |
|---|---|
SUM(range) | Total |
AVERAGE(range) | Average (ignores empty cells and text) |
MAX, MIN | Largest, smallest |
COUNT(range) | How many cells contain numbers |
COUNTA(range) | How many cells are not empty |
COUNTBLANK(range) | How many cells are empty |
MEDIAN(range) | The middle value |
AutoSum
Click the cell below a column of numbers and press Alt + = (or Home → AutoSum Σ). Excel writes =SUM(...) with the range it guesses. Check the range, then press Enter. The arrow next to AutoSum also offers Average, Count, Max and Min.
Several ranges
=SUM(B2:B6, D2:D6)
=AVERAGE(B2, D2, F2)
=MAX(Q1!F2:F41, Q2!F2:F41)
ROUND, ROUNDUP and ROUNDDOWN
| A | B | |
|---|---|---|
| 1 | Formula | Result |
| 2 | =ROUND(88.456, 2) | 88.46 |
| 3 | =ROUND(89.5, 0) | 90 |
| 4 | =ROUNDUP(41/5, 0) | 9 |
| 5 | =ROUNDDOWN(9.99, 0) | 9 |
| 6 | =ROUND(1234, -2) | 1200 |
The second argument is the number of decimal places. ROUNDUP(41/5, 0) answers "how many tricycles for 41 people, 5 per ride?"
COUNT vs COUNTA
| A | B | |
|---|---|---|
| 1 | Name | Grade |
| 2 | Ana | 88 |
| 3 | Ben | INC |
| 4 | Carla | | |
| 5 | Dan | 81 |
=COUNT(B2:B5)→ 2 (only numbers)=COUNTA(B2:B5)→ 3 (non-empty, including "INC")=COUNTBLANK(B2:B5)→ 1=AVERAGE(B2:B5)→ 84.5 (ignores "INC" and the blank)
RANK
=RANK(B2, $B$2:$B$6)
=RANK(B2, $B$2:$B$6, 1)
The first gives rank 1 to the highest value; adding a third argument of 1 gives rank 1 to the lowest. For the grades above, Carla (95) ranks 1 and Ben (72) ranks 5. Notice the $ signs: the range must stay fixed as you copy the formula down.
Functions in Google Sheets
Every function in this lesson works the same way in Google Sheets. Some locales use semicolons instead of commas between arguments, like =ROUND(88.456; 2); follow what your app suggests.
Quick Quiz
Check what you learned. Walang grade ito, practice lang. 🙂
By Sir Reyel · Last updated 2026-12-04