Information Technology Topic
SUM, AVERAGE, COUNT, MAX and MIN
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- A function is a ready-made calculation: =NAME(range). SUM adds, AVERAGE finds the mean, MAX and MIN find the largest and smallest, and COUNT says how many numbers there are
- These functions only use numbers. Text and empty cells are ignored, but a typed 0 is a number and is used, so it changes COUNT, AVERAGE and MIN
- The range you type decides the answer, so check it covers every cell you meant, and sense-check the result (an average must sit between the MIN and the MAX)
Section 1Functions: ready-made calculations
A function is a calculation the spreadsheet already knows how to do. You do not write out every step. You give it the name and tell it which cells to use. Every function sits inside a formula, so the cell entry starts with an equals sign, then the function name, then the cells you want it to work on inside brackets, for example =SUM(B2:B7). The things inside the brackets are the arguments. Here's the trick: if you forget the equals sign, the spreadsheet treats what you typed as plain text and shows the words instead of an answer.
Section 2Ranges: telling a function which cells to use
A range is a block of cells written as the first cell, a colon, then the last cell. B2:B7 means B2 down to B7, which is six cells. A2:B4 means a rectangle: columns A and B, rows 2 to 4, which is six cells too. If you want separate cells or separate ranges, put the list separator between them (a comma in most set-ups), for example =SUM(B2:B4, D2:D4). Why use cell addresses and not typed numbers? When you change a number in a cell, every formula that uses it updates by itself. No retyping.
Section 3SUM: the total
SUM adds up all the numbers in the range. =SUM(B2:B7) with marks 72, 85, 64, 90, 58 and 81 gives 450. Text and empty cells inside the range are skipped. They do not cause an error and they do not count as zero. They are simply left out of the adding. Use SUM for a total: total sales for the week, total marks, total cost of a trip.
Section 4AVERAGE: the mean
AVERAGE adds up the numbers in the range and divides by how many numbers there are. For those six marks that is 450 ÷ 6 = 75. Watch out: it divides by the count of numeric cells, not by the number of cells in the range. If one cell holds text or is empty, it is not counted, so the divisor is smaller. Sense-check every average. It can never be smaller than the MIN or bigger than the MAX. If the spreadsheet says the average mark is 92 but the highest mark is 88, something is wrong with your range or your data.
Section 5MAX and MIN: the extremes
MAX gives the largest number in the range and MIN gives the smallest. For the six marks, MAX is 90 and MIN is 58. They ignore text and empty cells too. So =MIN(D2:D7) will not return 0 just because a cell is empty. But if somebody types a 0 into that cell, MIN will find it. You can combine the answers: =MAX(B2:B7)-MIN(B2:B7) gives the gap between the highest and lowest value, here 90 - 58 = 32.
Section 6COUNT: how many numbers
COUNT tells you how many numeric values are in the range. For the six marks, =COUNT(B2:B7) is 6. Easy to mix up: COUNT does not add anything up, and it does not count names or other text. A range holding only names gives 0. A cell showing the word 'absent' is not counted, and neither is an empty cell. COUNT is also a handy partner for the others. SUM divided by COUNT gives the same number as AVERAGE, so you can use it to check your work.
Section 7Zero, text and empty cells
These three look similar but behave very differently. Text and empty cells are ignored by all five functions. A 0 is a real number and is always used. Suppose a shop owner in Mandeville leaves Sunday blank because the shop is shut. The blank is ignored, so it does not drag the average down. If she types 0 for Sunday, the average falls, COUNT goes up by one and MIN becomes 0. So choose what to type on purpose. Leave a cell empty (or enter a word such as 'absent') when there is no value. Type 0 only when the value really is zero.
Examples
A teacher in Portmore keeps six Maths test marks in cells B2 to B7: 72, 85, 64, 90, 58 and 81. (a) Write a formula for each of the total, the average, the highest mark, the lowest mark and the number of marks. (b) State the value each formula gives. (c) A new mark of 100 is typed in B8. The teacher's formulas still use B2:B7. What does the average show now, and what would =AVERAGE(B2:B8) show?
(a) and (b) Total: =SUM(B2:B7) gives 72 + 85 + 64 + 90 + 58 + 81 = 450. Average: =AVERAGE(B2:B7) gives 450 ÷ 6 = 75. Highest: =MAX(B2:B7) gives 90. Lowest: =MIN(B2:B7) gives 58. Number of marks: =COUNT(B2:B7) gives 6. Check: SUM ÷ COUNT = 450 ÷ 6 = 75, the same as AVERAGE, and 75 sits between 58 and 90, so it is sensible. (c) B8 is outside B2:B7, so the old formulas ignore it. The average still shows 75. Extending the range, =AVERAGE(B2:B8), uses seven marks: (450 + 100) ÷ 7 = 550 ÷ 7 = 78.57 (to 2 decimal places). Lesson: when you add data, make sure the range grows with it.
A shop in Mandeville records daily sales in B2 to B8, Monday to Sunday: Monday 18500, Tuesday 21200, Wednesday the word Closed (a power cut), Thursday 19750, Friday 24300, Saturday 31800 and Sunday left empty. (a) Find =SUM(B2:B8) and =COUNT(B2:B8). (b) Find =AVERAGE(B2:B8). (c) Find the highest and lowest sales and the gap between them. (d) The owner replaces the word Closed with 0. State what happens to the SUM, COUNT, AVERAGE and MIN.
(a) The text in Wednesday and the empty Sunday cell are ignored. SUM = 18500 + 21200 + 19750 + 24300 + 31800 = 115550. COUNT = 5, not 7, because only five cells hold numbers. (b) AVERAGE divides by 5: 115550 ÷ 5 = 23110. (c) MAX = 31800 (Saturday) and MIN = 18500 (Monday). The gap is =MAX(B2:B8)-MIN(B2:B8) = 31800 - 18500 = 13300. (d) A 0 is a real number, so it is now used. SUM stays 115550 because adding 0 changes nothing. COUNT rises to 6. AVERAGE becomes 115550 ÷ 6 = 19258.33 (to 2 decimal places), which is lower than before. MIN becomes 0. The average dropped from 23110 to 19258.33 even though no sale changed. That is why you should type 0 only when the real figure is zero. Here the word Closed was the more honest entry, because the shop had no sales figure that day.
Now let's water it
Session runs notes to flashcards to quiz back-to-back.
Where this comes from
- CSEC Information Technology Syllabus (CXC 30/G/SYLL 08, revised 2000, 2008, 2013) · Caribbean Examinations Council (CXC) · Section 7, Specific Objective 3 · Syllabus scope
- Calc Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 8, Understanding the structure of functions, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/CG7.6/CG76-CalcGuide.pdf), page 288 · Facts
- Calc Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 8, Reference range operator, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/CG7.6/CG76-CalcGuide.pdf), page 276 · Facts
- LibreOffice Help, Calc function reference pages · The Document Foundation · Page 04060106, SUM, checked against (https://help.libreoffice.org/latest/en-US/text/scalc/01/04060106.html) · Facts
- LibreOffice Help, Calc function reference pages · The Document Foundation · Page 04060184, AVERAGE, MAX and MIN, checked against (https://help.libreoffice.org/latest/en-US/text/scalc/01/04060184.html) · Facts
- LibreOffice Help, Calc function reference pages · The Document Foundation · Page 04060181, COUNT, checked against (https://help.libreoffice.org/latest/en-US/text/scalc/01/04060181.html) · Facts