Use Excel’s built-in functions to total, analyse and make decisions with data.
Tap the green cells. Each one uses a different function on this stock list.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | In stock | Price | Value | Reorder? |
| 2 | Printer paper | 42 | R 89 | R 3 738 | No |
| 3 | Toner | 6 | R 1 250 | R 7 500 | Yes |
| 4 | Pens (box) | 15 | R 65 | R 975 | Yes |
| 5 | Staplers | 28 | R 120 | R 3 360 | No |
| 6 | Total stock | 91 | R 15 573 | ||
| 7 | |||||
| 8 | Highest price | R 1 250 | |||
| 9 | Average stock | 22.75 | |||
| 10 | Products to reorder | 2 | |||
| 11 | Price of toner | R 1 250 |
=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).
=IF(B2>=C2,"Competent","Not yet competent"). Change the mark and watch the result flip.Which function counts how many products need reordering (cells showing “Yes”)?
What does =IF(B2>=50,”Pass”,”Fail”) show when B2 is 49?