Spreadsheets for data
When Sudhakar wants the total marks of every student in his class , across six subjects , he could add the columns by hand, but it would take hours. A spreadsheet can do all that arithmetic in less than a second. You type one formula, drag it down, and the answers appear. Modern data-handling almost always uses spreadsheets, so it is worth learning the basics now.
Concept
A spreadsheet is a digital grid of cells. Each cell is named by a letter (the column) and a number (the row). For instance, is the top-left cell, is the cell in column , row .
You can type three kinds of things into a cell:
- Text , like the heading "Maths".
- A number , like .
- A formula , starts with an
=sign, and the cell shows the computed result.
Cell ranges. Several cells in a row, column, or rectangle can be described by their first and last names, separated by a colon. Examples:
B3:G3, all cells from across to (one row).D2:D6, all cells in column , rows to (one column).B2:E5, a rectangle of cells.
Key formulae.
| Formula | What it does |
|---|---|
=SUM(B3:G3) | adds all values in row , columns to |
=AVERAGE(B3:G3) | computes the mean of the same cells |
=MAX(B2:B10) | returns the largest value |
=MIN(B2:B10) | returns the smallest value |
=COUNT(B2:B10) | counts how many cells contain numbers |
If any of the source values changes, the formula updates automatically. This is the spreadsheet's superpower: the data stays linked to the calculations.
Filling formulae down. If you write =SUM(B3:G3) in cell , you can drag the small handle at the corner of the cell downward, and the spreadsheet will produce =SUM(B4:G4) in , =SUM(B5:G5) in , and so on. This is how a single formula computes totals for an entire class in seconds.
Common pitfalls.
- Forgetting the
=sign , the cell just shows the text "SUM(B3:G3)" instead of computing. - Using a wrong range , e.g.,
B3:G2(which spans nothing). - Including text cells inside an
AVERAGErange , text is ignored, but check your range still has only the cells you want.
You can use any spreadsheet software , Google Sheets, Microsoft Excel, LibreOffice Calc , they all share the same formulae for SUM, AVERAGE, MAX, MIN, and COUNT.
Worked examples
Example 1. A class's marks in Maths are in cells . What formula gives the class's mean Maths mark?
=AVERAGE(E2:E8).
Example 2. Cells contain Nagesh's marks in six subjects. What formula gives his total?
=SUM(B3:G3). To get the total in for the whole class, type that in and drag down to .
Example 3. What cell contains the marks for Farooq in Mathematics, given Mathematics is column and Farooq is in row ?
- Cell .
Example 4. Subjects (column headings) sit in row . Six students sit in rows to , with their scores in columns to . Write formulae to display:
-
(i) the average Science mark.
-
(ii) the highest English mark.
-
(iii) the total marks of the third student.
-
(i)
=AVERAGE(G2:G7)(if Science is column ). -
(ii)
=MAX(D2:D7)(if English is column ). -
(iii)
=SUM(B4:G4).
Try it yourself
- The marks in Hindi are in cells . Write a formula for the class average in Hindi.
- Write a formula for the highest mark in the same column.
- Marks of a student named Ratna are in . Write the formula for Ratna's total.
- What does the formula
=SUM(B2:B10)+SUM(C2:C10)compute? - If
=AVERAGE(B2:B6)gives , what is the sum of to ? - What cell name refers to column , row ?
- True or false: changing the value in will automatically update any formula that uses cell .
- If a column has the values , type the formula for their mean , and then compute the mean yourself to verify.
Activity
Class data on a spreadsheet. With your teacher's help, open a spreadsheet program on a computer. Enter the names of classmates in column , and their scores in three subjects across columns . In column , type
=SUM(B2:D2)for the first student's total and drag down. In row 8, type=AVERAGE(B2:B6)for the class mean in subject 1, and drag right to get all three subject averages. Now change one mark and watch the totals and averages update on their own , that's the spreadsheet at work.