What you will learn
- Know which part of a formula is done first
- Use parentheses to choose what goes first
How it works
The spreadsheet does math in this order:
- First, anything in parentheses ( )
- Then
*times and/divide - Last,
+add and-subtract
So =2+3*4 is 14, but =(2+3)*4 is 20.
Formulas at a glance
=B2*(1+C2)+D2 | cost with markup, plus shipping |
=E2-B2-D2 | profit |
Example
Write the formula to get the price of the Mug.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Product | Cost | Markup | Shipping | Price | Profit | Margin |
| 2 | Mug | $6.00 | 40% | $3.50 | |||
| 3 | Tote | $9.00 | 50% | $4.00 | |||
| 4 | Cap | $7.50 | 45% | $3.50 | |||
| 5 | Poster | $4.00 | 60% | $2.00 |
Click E2 and type =B2*(1+C2)+D2, then press Enter.
The answer is $11.90.
When to use it
- Adding tax or a discount before a fee
- Working out a price after a percent change
- Any formula that mixes + or - with * or /
Common mistakes
- Writing =B2+C2*D2 when you meant to add firstPut the part that goes first in parentheses: =(B2+C2)*D2.
- Too many or too few parenthesesEvery ( needs a matching ). Excel colors the pairs to help you check.
- Thinking Excel works left to rightExcel does * and / before + and -, wherever they are.
Quick check
B2 is $6.00, C2 is 40% and D2 is $3.50. Which formula gives the Mug's correct price of $11.90?
=B2*1+C2+D2=B2*(1+C2)+D2=B2+C2+D2=(B2*1+C2)+D2
Show the answer
B. =B2*(1+C2)+D2 The parentheses make Excel add 1 + C2 first. Then it multiplies by B2 and adds D2.
Practice it on a real sheet
Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.