Resources | Subject Notes | Information Communication Technology ICT
This section covers the use of arithmetic operators in spreadsheet formulae. Understanding these operators is fundamental to performing calculations and analyzing data effectively.
Spreadsheet software provides four basic arithmetic operators:
Like in mathematics, arithmetic operators have a specific order of precedence. This determines the sequence in which calculations are performed. The order of precedence is generally as follows (from highest to lowest):
Here are some examples demonstrating the use of arithmetic operators in spreadsheet formulae:
Example: If cell A1 contains 10 and cell B1 contains 5, the formula `=A1+B1` will return 15.
Formula: =A1+B1
Example: If cell A2 contains 20 and cell B2 contains 8, the formula `=A2-B2` will return 12.
Formula: =A2-B2
Example: If cell A3 contains 4 and cell B3 contains 6, the formula `=A3$\times$B3` will return 24.
Formula: =A3$\times$B3
Example: If cell A4 contains 30 and cell B4 contains 5, the formula `=A4$\div$B4` will return 6.
Formula: =A4$\div$B4
Example: If cell A5 contains 2 and cell B5 contains 3, the formula `=A5$\wedge$B5` will return 8 (2 to the power of 3).
Formula: =A5$\wedge$B5
Example: If cell A6 contains 10, cell B6 contains 2, and cell C6 contains 3, the formula `=(A6+B6)$\times$C6` will return 36. This demonstrates the order of operations: addition is performed before multiplication.
Formula: =(A6+B6)$\times$C6
When using arithmetic operators in formulae, it's important to understand the difference between relative and absolute cell references. This affects how the formula changes when it's copied to other cells.
Reference Type | Example | Explanation |
---|---|---|
Relative | =A1+B1 |
When copied, the cell references change relative to the new location. |
Absolute | =$A$1+$B$1 |
The cell references remain fixed, even when the formula is copied. |
Using absolute references (e.g., `$A$1`) is useful when you want to refer to the same cell in multiple calculations.
To solidify your understanding, try the following practice problems: