Topics in this sectionFormula and Functions12 topics
Introduction to Formulas in Spreadsheets
A formula in a spreadsheet is a set of instructions that tells the program how to calculate a value. When you type a formula into a cell, the spreadsheet reads it, performs the calculation, and shows the result. This is what makes spreadsheets powerful — they can do math for you automatically.
A formula always begins with an equals sign (=). After the equals sign, you write the calculation using numbers, cell references, and operators. For example, if you type =5+3 into a cell, the spreadsheet will display 8.
Formulas can also use cell references instead of typing numbers directly. If cell A1 contains the number 10 and cell B1 contains the number 5, you can type =A1+B1 to get 15. This is useful because if you change the numbers in A1 or B1, the formula result updates automatically.
A formula can combine many values and operations. Here is a simple formula using cell references:
=A1+B1-C1
This adds the values in A1 and B1, then subtracts the value in C1.
Arithmetic operators are symbols that tell the spreadsheet what mathematical operation to perform. The main arithmetic operators in Excel are:
| Operator | Meaning | Example |
|---|---|---|
| + | Addition | 5+3 = 8 |
| - | Subtraction | 10-4 = 6 |
| * | Multiplication | 4*3 = 12 |
| / | Division | 20/4 = 5 |
| ^ | Exponentiation (power) | 2^3 = 8 |
Notice that multiplication uses an asterisk (*) and division uses a forward slash (/), not the × and ÷ symbols you use in handwritten math.
A Worked Example
Imagine you are helping your mother calculate the total cost of sorghum at a boma market. You have a spreadsheet with the price per kilogram in cell B2 and the weight in kilograms in cell C2.
If B2 contains 500 (five hundred South Sudanese pounds per kilogram) and C2 contains 10 (kilograms), the formula to find the total cost is:
=B2*C2
This multiplies 500 by 10 to get 5,000 SSP.
When a formula has more than one operator, Excel does not simply calculate from left to right. Instead, it follows a specific order called operator precedence. This order decides which operation happens first.
The order of precedence in Excel is:
- Parentheses ( ) — Calculations inside brackets are done first
- Exponentiation ^ — Powers and roots
- Multiplication * and Division / — Done next, from left to right
- Addition + and Subtraction - — Done last, from left to right
This order is also known by the acronym PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction).
Why Precedence Matters
Consider this formula:
=5 + 2 * 2 ^ 3 - 1
If you calculate from left to right, you might get a wrong answer. Following the correct order:
- First, do the exponent: 2 ^ 3 = 8
- Then, do the multiplication: 2 * 8 = 16
- Then, do addition and subtraction from left to right: 5 + 16 - 1 = 20
So the result is 20.
Using Parentheses to Control Order
If you want addition to happen before multiplication, you must use parentheses. For example:
=(5 + 2) * 2 ^ 3 - 1
Now the calculation is:
- Parentheses first: 5 + 2 = 7
- Exponent: 2 ^ 3 = 8
- Multiplication: 7 * 8 = 56
- Subtraction: 56 - 1 = 55
The answer is now 55, completely different from the first example. Using parentheses lets you control exactly how Excel calculates.
If a cell shows a series of hash marks like #########, this does not mean your formula is wrong. It usually means the column is too narrow to display the result. Simply make the column wider, and the number will appear.
In South Sudan, spreadsheets with formulas are used in markets, schools, and small businesses every day. A shopkeeper in Juba can use a formula like =B2*C2 to multiply the price of a bag of dura flour by the quantity sold to find the total earnings. A teacher at a county school can use formulas to calculate average scores for students across multiple subjects. Understanding formulas helps you work efficiently with numbers in everyday life, whether you are tracking sales at a market stall or managing a household budget.
Question
Every formula in a spreadsheet must start with which symbol?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet