ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 5 · Getting started

Order of operations in Excel

Excel does math in a set order: parentheses first, then times and divide, then add and subtract. Knowing the order means your formulas give the answer you expect.

Practice this lesson →Pro lesson. The first 4 lessons are free.

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)+D2cost with markup, plus shipping
=E2-B2-D2profit

Example

Write the formula to get the price of the Mug.

ABCDEFG
1ProductCostMarkupShippingPriceProfitMargin
2Mug$6.0040%$3.50
3Tote$9.0050%$4.00
4Cap$7.5045%$3.50
5Poster$4.0060%$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?

  1. =B2*1+C2+D2
  2. =B2*(1+C2)+D2
  3. =B2+C2+D2
  4. =(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.

Order of operations in Excel: how it works, with examples · ExcelUnpack