© 2026 schoolict.net (Ruwan Mangala Suraweera)
7.4 Spreadsheet Functions: SUM, AVERAGE, MAX, MIN and COUNTපැතුරුම්පත් Functions: SUM, AVERAGE, MAX, MIN සහ COUNT
G.C.E. O/L Grade 10 ICT · Lesson 7G.C.E. O/L ICT · 10 ශ්රේණිය · පාඩම 7
In this videoමේ වීඩියෝවේ
- Functions are built-in formulas: =NAME(arguments).Functions යනු ගොඩනැගූ සූත්ර: =NAME(arguments).
- SUM adds, AVERAGE finds the mean.SUM එකතු කරයි, AVERAGE මධ්යන්යය සොයයි.
- MAX highest, MIN lowest.MAX ඉහළම, MIN අඩුම.
- COUNT counts numbers; COUNTA counts non-empty cells.COUNT අංක ගණන් කරයි; COUNTA හිස් නොවන cells ගණන් කරයි.
- AutoSum (Alt+=) inserts SUM quickly.AutoSum (Alt+=) ඉක්මනින් SUM ඇතුළු කරයි.
Notesසටහන්
A function is a ready-made formula with a name. You give it arguments (parameters) inside brackets and it returns an answer. In this note you will use the five basic statistical functions SUM, AVERAGE, MAX, MIN and COUNT on a mark sheet and on Colombo rainfall data, learn the difference between a range (B2:B6) and a list (B2,B4,B6), and see why COUNT counts numbers only.Function එකක් යනු නමක් සහිත සූදානම් සූත්රයකි. වරහන් තුළ arguments (parameters) දුන් විට එය පිළිතුරක් ලබා දෙයි. මෙම සටහනෙන් ලකුණු පත්රයක සහ කොළඹ වර්ෂාපතන දත්ත මත SUM, AVERAGE, MAX, MIN සහ COUNT මූලික සංඛ්යාන functions පහ භාවිත කර, range (B2:B6) සහ list (B2,B4,B6) අතර වෙනස සහ COUNT අංක පමණක් ගණන් කරන්නේ ඇයිදැයි ඉගෙන ගනිමු.
1. Syntax of a function1. Function එකක ව්යාකරණය (syntax)
- Range argument: B2:B6 = all cells from B2 to B6.Range argument: B2:B6 = B2 සිට B6 දක්වා සියලු cells.
- List argument: B2,B4,B6 = only those cells (commas).List argument: B2,B4,B6 = එම cells පමණි (කොමා).
- Mixed: =SUM(B2:B6,10) adds the range and the number 10.මිශ්ර: =SUM(B2:B6,10) range එක සහ අංකය 10 එකතු කරයි.
- Function names are not case-sensitive (=sum(b2:b6) works) but must be spelt correctly, otherwise #NAME?.Function නම් අකුරු ප්රමාණයට සංවේදී නොවේ (=sum(b2:b6) ක්රියා කරයි) නමුත් නිවැරදිව ලිවිය යුතුය, නැතහොත් #NAME?.
2. The data: Grade 10 mark sheet2. දත්ත: 10 ශ්රේණියේ ලකුණු පත්රය
| A: NameA: නම | B: SinhalaB: සිංහල | C: MathsC: ගණිතය | D: ScienceD: විද්යාව | E: ICTE: ICT |
|---|---|---|---|---|
| 2 Nimal2 නිමල් | 7272 | 6565 | 5858 | 8080 |
| 3 Sara3 සාරා | 8888 | 9191 | 7979 | 9595 |
| 4 Kasun4 කසුන් | 5454 | 4747 | 6262 | 7070 |
| 5 Dilini5 දිලිනි | 6767 | ab (absent)ab (නොපැමිණි) | 7171 | 8585 |
| 6 Ishan6 ඉෂාන් | 8181 | 7676 | (empty)(හිස්) | 6464 |
3. The five functions3. Functions පහ
| FunctionFunction | Doesකරන්නේ | Exampleඋදාහරණය | Resultප්රතිඵලය |
|---|---|---|---|
| SUMSUM | Adds numbersඅංක එකතු කරයි | =SUM(B2:B6)=SUM(B2:B6) | 362362 |
| AVERAGEAVERAGE | Sum ÷ how many numbersඑකතුව ÷ අංක ගණන | =AVERAGE(B2:B6)=AVERAGE(B2:B6) | 72.472.4 |
| MAXMAX | Largest numberවිශාලතම අංකය | =MAX(E2:E6)=MAX(E2:E6) | 9595 |
| MINMIN | Smallest numberකුඩාම අංකය | =MIN(E2:E6)=MIN(E2:E6) | 6464 |
| COUNTCOUNT | How many cells hold numbersඅංක ඇති cells ගණන | =COUNT(C2:C6)=COUNT(C2:C6) | 44 |
Nimal’s total: =SUM(B2:E2) = 275; his average =AVERAGE(B2:E2) = 68.75. Sara’s highest mark =MAX(B3:E3) = 95; Kasun’s lowest =MIN(B4:E4) = 47.නිමල්ගේ එකතුව: =SUM(B2:E2) = 275; සාමාන්යය =AVERAGE(B2:E2) = 68.75. සාරාගේ ඉහළම ලකුණ =MAX(B3:E3) = 95; කසුන්ගේ අඩුම =MIN(B4:E4) = 47.
4. COUNT counts numbers only4. COUNT අංක පමණක් ගණන් කරයි
Column C (Maths) holds C2:C6 = 65, 91, 47, ab, 76. =COUNT(C2:C6) = 4 because ‘ab’ is text. SUM and AVERAGE also ignore text, so =AVERAGE(C2:C6) = 279 ÷ 4 = 69.75. In column D the empty cell is ignored: =COUNT(D2:D6) = 4, =AVERAGE(D2:D6) = 67.5.C තීරුවේ C2:C6 = 65, 91, 47, ab, 76. ‘ab’ පෙළ නිසා =COUNT(C2:C6) = 4. SUM සහ AVERAGE ද පෙළ නොසලකයි, එබැවින් =AVERAGE(C2:C6) = 279 ÷ 4 = 69.75. D තීරුවේ හිස් cell එක නොසැලකේ: =COUNT(D2:D6) = 4, =AVERAGE(D2:D6) = 67.5.
5. Rainfall example and range vs list5. වර්ෂාපතන උදාහරණය සහ range එදිරිව list
| Month (A)මාසය (A) | JanJan | FebFeb | MarMar | AprApr | MayMay | JunJun |
|---|---|---|---|---|---|---|
| Rain mm (B2:B7)වර්ෂාව mm (B2:B7) | 5858 | 7373 | 128128 | 245245 | 392392 | 184184 |
- Total: =SUM(B2:B7) = 1080 mmඑකතුව: =SUM(B2:B7) = 1080 mm
- Average: =AVERAGE(B2:B7) = 180 mmසාමාන්යය: =AVERAGE(B2:B7) = 180 mm
- Wettest: =MAX(B2:B7) = 392 (May); driest: =MIN(B2:B7) = 58 (Jan)වැඩිම: =MAX(B2:B7) = 392 (May); අඩුම: =MIN(B2:B7) = 58 (Jan)
- List: =SUM(B2,B4,B6) = 58+128+392 = 578 (Jan, Mar, May only)List: =SUM(B2,B4,B6) = 58+128+392 = 578 (Jan, Mar, May පමණි)
- Range of values (spread): =MAX(B2:B7)-MIN(B2:B7) = 334 mmඅගයන්ගේ පරාසය: =MAX(B2:B7)-MIN(B2:B7) = 334 mm
Key Wordsප්රධාන පද
Sample Q&Aආදර්ශ ප්රශ්න සහ පිළිතුරු
1Write the syntax of the SUM function.SUM function හි syntax ලියන්න.
2What is an argument?Argument එකක් යනු කුමක්ද?
3Why does =COUNT(C2:C6) give 4 and not 5?=COUNT(C2:C6) 5 නොව 4 දෙන්නේ ඇයි?
4Find the average rainfall Jan–Jun.Jan–Jun සාමාන්ය වර්ෂාපතනය සොයන්න.
5Difference between B2:B6 and B2,B6?B2:B6 සහ B2,B6 අතර වෙනස?
6Difference between COUNT and COUNTA?COUNT සහ COUNTA අතර වෙනස?
MCQබහුවරණ ප්රශ්න
Choose the correct answer for each question.සෑම ප්රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.
1=SUM(B2:B6) for Sinhala marks 72, 88, 54, 67, 81 gives…සිංහල ලකුණු 72, 88, 54, 67, 81 සඳහා =SUM(B2:B6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Add all five.පහම එකතු කරන්න.
2=AVERAGE(B2:B6) for the same marks gives…එම ලකුණු සඳහා =AVERAGE(B2:B6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
362/5.362/5.
3=MAX(E2:E6) for ICT marks 80, 95, 70, 85, 64 is…ICT ලකුණු 80, 95, 70, 85, 64 සඳහා =MAX(E2:E6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Largest.විශාලතම.
4=MIN(E2:E6) for the same marks is…එම ලකුණු සඳහා =MIN(E2:E6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Smallest.කුඩාම.
5C2:C6 = 65, 91, 47, ab, 76. =COUNT(C2:C6) is…C2:C6 = 65, 91, 47, ab, 76. =COUNT(C2:C6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Text not counted.පෙළ ගණන් නොකෙරේ.
6For the same cells =COUNTA(C2:C6) is…එම cells සඳහා =COUNTA(C2:C6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Text counted too.පෙළ ද ගණන් වේ.
7For the same cells =AVERAGE(C2:C6) is…එම cells සඳහා =AVERAGE(C2:C6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
279/4; text ignored.279/4; පෙළ නොසැලකේ.
8Rainfall 58, 73, 128, 245, 392, 184. =SUM(B2:B7) is…වර්ෂාව 58, 73, 128, 245, 392, 184. =SUM(B2:B7)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Total.එකතුව.
9For the same rainfall =AVERAGE(B2:B7) is…එම වර්ෂාව සඳහා =AVERAGE(B2:B7)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
1080/6.1080/6.
10=SUM(B2,B4,B6) with the rainfall data gives…වර්ෂාපතන දත්ත සමඟ =SUM(B2,B4,B6)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Only B2, B4, B6.B2, B4, B6 පමණි.
11In =SUM(B2:B6), B2:B6 is the…=SUM(B2:B6) හි B2:B6 යනු…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Inside the brackets.වරහන් තුළ.
12=SUMM(B2:B6) shows…=SUMM(B2:B6) පෙන්වන්නේ…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Misspelt name.වැරදි නම.
13Which counts how many students have a Maths mark?ගණිත ලකුණක් ඇති සිසුන් ගණන ගණන් කරන්නේ කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Numbers only.අංක පමණි.
14=SUM(B2:B6,10) with Sinhala marks gives…සිංහල ලකුණු සමඟ =SUM(B2:B6,10)…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Range + 10.Range + 10.
15The Σ button on the Home tab is…Home tab හි Σ බොත්තම…
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Inserts SUM.SUM ඇතුළු කරයි.
MCQ answer keyMCQ පිළිතුරු
- A – Add all five.පහම එකතු කරන්න.
- B – 362/5.362/5.
- C – Largest.විශාලතම.
- C – Smallest.කුඩාම.
- D – Text not counted.පෙළ ගණන් නොකෙරේ.
- C – Text counted too.පෙළ ද ගණන් වේ.
- D – 279/4; text ignored.279/4; පෙළ නොසැලකේ.
- A – Total.එකතුව.
- B – 1080/6.1080/6.
- A – Only B2, B4, B6.B2, B4, B6 පමණි.
- D – Inside the brackets.වරහන් තුළ.
- C – Misspelt name.වැරදි නම.
- A – Numbers only.අංක පමණි.
- B – Range + 10.Range + 10.
- B – Inserts SUM.SUM ඇතුළු කරයි.
Structured Questionsව්යුහගත ප්රශ්න
1Using the mark sheet, write a formula and give the result for: (i) total of Sara (B3:E3) (ii) average Sinhala mark (iii) highest ICT mark (iv) lowest Science mark.ලකුණු පත්රය භාවිතයෙන් සූත්රය සහ ප්රතිඵලය දෙන්න: (i) සාරාගේ එකතුව (B3:E3) (ii) සාමාන්ය සිංහල ලකුණ (iii) ඉහළම ICT ලකුණ (iv) අඩුම විද්යා ලකුණ. (8 marksලකුණු 8)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
2Label the parts of =SUM(B2:B6).=SUM(B2:B6) හි කොටස් නම් කරන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
3C2:C6 holds 65, 91, 47, ab, 76. Give the results of COUNT, COUNTA, SUM and AVERAGE for this range and explain the difference between COUNT and COUNTA.C2:C6 හි 65, 91, 47, ab, 76 ඇත. මෙම range සඳහා COUNT, COUNTA, SUM, AVERAGE ප්රතිඵල දී COUNT සහ COUNTA අතර වෙනස පැහැදිලි කරන්න. (5 marksලකුණු 5)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
4Rainfall Jan–Jun is in B2:B7 (58, 73, 128, 245, 392, 184). Write formulas for the total, average, wettest and driest months and give the answers.Jan–Jun වර්ෂාව B2:B7 හි ඇත (58, 73, 128, 245, 392, 184). එකතුව, සාමාන්යය, වැඩිම සහ අඩුම සඳහා සූත්ර ලියා පිළිතුරු දෙන්න. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
5Explain the difference between a range and a list argument with examples.Range සහ list argument අතර වෙනස උදාහරණ සමඟ පැහැදිලි කරන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
🎮 Game🎮 ක්රීඩා
Summary & Downloadsසාරාංශය සහ බාගත කිරීම්
Key pointsප්රධාන කරුණු
- Function = named ready-made formula: =NAME(arguments).Function = නමක් ඇති සූදානම් සූත්රය: =NAME(arguments).
- Arguments go in brackets; range uses :, list uses commas.Arguments වරහන් තුළ; range : , list කොමා.
- SUM adds; AVERAGE = sum ÷ count of numbers.SUM එකතු කරයි; AVERAGE = එකතුව ÷ අංක ගණන.
- MAX largest; MIN smallest.MAX විශාලතම; MIN කුඩාම.
- COUNT counts numbers only; COUNTA counts all non-empty cells.COUNT අංක පමණි; COUNTA හිස් නොවන සියලු cells.
- Text and empty cells are ignored by SUM, AVERAGE, MAX, MIN.SUM, AVERAGE, MAX, MIN පෙළ සහ හිස් cells නොසලකයි.
- Misspelt function → #NAME?.වැරදි function නම → #NAME?.
- AutoSum Σ inserts SUM, AVERAGE, COUNT, MAX, MIN quickly.AutoSum Σ SUM, AVERAGE, COUNT, MAX, MIN ඉක්මනින් ඇතුළු කරයි.
