Skip to main content
SingaporeComputer ApplicationsSyllabus dot point

How do I use built-in functions such as SUM, AVERAGE, MAX, MIN, COUNT and IF to calculate quickly in a spreadsheet?

Use common built-in functions, including SUM, AVERAGE, MAX, MIN, COUNT and IF, with cell ranges to summarise and test data

A step-by-step answer to the N-Level Computer Applications outcome on spreadsheet functions: SUM, AVERAGE, MAX, MIN, COUNT and IF, using cell ranges to total, average and test data quickly.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

This outcome is about using built-in functions, which are ready-made calculations the spreadsheet provides. You should be able to use SUM, AVERAGE, MAX, MIN and COUNT on a range of cells, and use IF to display one of two results depending on a test. You should also know why functions are better than long manual formulas and how to write a cell range. In the written paper you write functions and explain what they do; in the practical you apply them to real data.

The answer

What a function is

A function is a named, built-in calculation. You give it some inputs, called arguments, usually a range of cells, and it returns a result. A function still starts with an equals sign, then the function name, then brackets holding the arguments, for example =SUM(B2:B11).

Cell ranges

A range is a block of cells written as the first cell, a colon, then the last cell. B2:B11 means all cells from B2 down to B11. Using a range lets one function work on many cells at once, instead of listing each cell.

The summary functions

  • SUM adds all the numbers in the range, for example =SUM(B2:B11) totals ten scores.
  • AVERAGE finds the mean (the total divided by how many), for example =AVERAGE(B2:B11).
  • MAX returns the largest value, for example =MAX(B2:B11).
  • MIN returns the smallest value, for example =MIN(B2:B11).
  • COUNT counts how many cells in the range hold a number, for example =COUNT(B2:B11) returns 10 if all ten cells have a score.

Why functions beat manual formulas

  • Faster. One short function replaces a long chain such as =B2+B3+B4+B5.
  • Fewer mistakes. A long manual sum is easy to mistype or to miss a cell.
  • Updates automatically. Add a row inside the range or change a value, and the result recalculates.

The IF function

IF makes a decision. It has three parts: a test, the value to show if the test is true, and the value to show if it is false. For example =IF(B2>=50, "Pass", "Fail") checks whether B2 is at least 50; if so it shows "Pass", otherwise "Fail". The comparison operators are useful here: greater than, less than, and greater than or equal to. Text results go in quotation marks.

Examples in context

Example 1. A sales summary. A shop keeps daily sales in a column and uses =SUM(...) for the week's total, =AVERAGE(...) for the daily average, and =MAX(...) to spot the best day. Because the figures live in functions, the summary updates the moment a day's sales are entered.

Example 2. Stock reorder flags. A store uses =IF(B2<10, "Reorder", "OK") so column C shows "Reorder" whenever the stock in column B drops below ten. Copied down the list, it flags every low item at a glance without checking each number by hand.

Try this

  • Cue. Write a function to find the average of the values in cells D2 to D20. (=AVERAGE(D2:D20), where the colon makes D2:D20 a range covering all those cells.)

  • Cue. Explain the three parts of the IF function in order. (First the test or condition, then the value to show if it is true, then the value to show if it is false.)

  • Cue. Give two reasons to use SUM rather than adding the cells one by one. (It is faster as one short formula and less error-prone than a long chain, and it updates automatically if a value changes or a row is added inside the range.)

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original4 marksA spreadsheet has ten test scores in cells B2 to B11. Write functions to find the total, the average, the highest and the lowest score, and explain why a function is better than adding the cells one by one.
Show worked answer →

The four functions:

  1. Total: =SUM(B2:B11)
  2. Average: =AVERAGE(B2:B11)
  3. Highest: =MAX(B2:B11)
  4. Lowest: =MIN(B2:B11)

A function is better because it works on a whole range in one short formula, it is less likely to contain a typing mistake than a long chain of additions, and it updates automatically if a score changes or a row is added inside the range.

What markers reward: correct function names with the range B2:B11, and a sensible reason such as speed, fewer errors, or automatic updating.

Original4 marksA teacher wants column C to show 'Pass' if the score in column B is at least 50, and 'Fail' otherwise. Write a suitable IF function for cell C2 and explain how it decides what to display.
Show worked answer →

A suitable function for C2 is:

=IF(B2>=50, "Pass", "Fail")

The IF function tests a condition first. Here it checks whether B2 is greater than or equal to 50. If the test is true it shows the first result, "Pass"; if the test is false it shows the second result, "Fail". Copying it down column C tests each student's own score.

What markers reward: the correct three parts of IF (the test, the value if true, the value if false), the condition B2ge50B2 \\ge 50 written correctly, and an explanation that it displays one of two results depending on the test.

Related dot points