Functions: SUM, AVERAGE, IF and lookups

Study Part 4 · Topic 4 of 6

Use Excel’s built-in functions to total, analyse and make decisions with data.

40 minInteractiveMicrosoft Excel
0 activities complete
Hands on

Functions at work

Tap the green cells. Each one uses a different function on this stock list.

A1Tap a cell
ABCDE
1ProductIn stockPriceValueReorder?
2Printer paper42R 89R 3 738No
3Toner6R 1 250R 7 500Yes
4Pens (box)15R 65R 975Yes
5Staplers28R 120R 3 360No
6Total stock91R 15 573
7
8Highest priceR 1 250
9Average stock22.75
10Products to reorder2
11Price of tonerR 1 250
A function has a name and arguments in brackets: =SUM(B2:B5).
The essentials

Functions you’ll use every week

=SUM(B2:B5) adds a range. Alt + = inserts AutoSum instantly.

=AVERAGE(B2:B5) the mean of the numbers.

=MIN(C2:C5) and =MAX(C2:C5) find the smallest and largest values.

=COUNT(B2:B5) counts numbers; =COUNTA() counts anything that isn’t empty; =COUNTIF(E2:E5,"Yes") counts cells that match.

=IF(B2<20,"Yes","No"): IF(test, value if true, value if false). Use it to make decisions like reorder alerts or pass/fail.

=XLOOKUP("Toner",A2:A5,C2:C5) finds Toner in column A and returns its price from column C. Older versions use =VLOOKUP("Toner",A2:C5,3,FALSE).

Your turn

Pass or fail?

IF in action
=IF(B2>=C2, …)–
Points above or below the pass mark–
Excel formula: =IF(B2>=C2,"Competent","Not yet competent"). Change the mark and watch the result flip.
Knowledge check

Which function counts how many products need reordering (cells showing “Yes”)?

Knowledge check

What does =IF(B2>=50,”Pass”,”Fail”) show when B2 is 49?

Key takeaways

  • Functions have a name and arguments: =SUM(B2:B5).
  • IF makes decisions; COUNTIF counts matches.
  • XLOOKUP (or VLOOKUP) finds a value in a list.