Aral Code

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

AB
1StudentGrade
2Ana88
3Ben72
4Carla95
5Dan81
6Ela90
7Sum=SUM(B2:B6)
8Average=AVERAGE(B2:B6)
9Highest=MAX(B2:B6)
10Lowest=MIN(B2:B6)
11Count=COUNT(B2:B6)

Results:

AB
7Sum426
8Average85.2
9Highest95
10Lowest72
11Count5
FunctionReturns
SUM(range)Total
AVERAGE(range)Average (ignores empty cells and text)
MAX, MINLargest, 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

AB
1FormulaResult
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

AB
1NameGrade
2Ana88
3BenINC
4Carla |
5Dan81
  • =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. 🙂

1. What does =COUNT(A1:A10) count?
2. What is =ROUNDUP(41/5, 0)?
3. Which shortcut inserts AutoSum?
4. Does AVERAGE include empty cells as zero?

By Sir Reyel · Last updated 2026-12-04