Learn how to use the Dollars in an Excel formula

Price with and without tax

Let's start with a very simple case.

  • We have a table that contains the unit selling price and the quantity purchased.
  • To calculate the price excluding tax, multiply these two elements.
Calculate the total without tax

Then, when you recopy the formula for each product, you'll get the following result. As you copy the formula down, the row references change automatically (but not the column references).

Copy the formula of the price without tax

Calculate the price including tax

Now, let's calculate the price including tax.

  • We will use cell E1 in our formula.
  • The formula is: =Price without tax + Price without tax * tax
  • Or, you can simplify the formula to =Price without tax * (1 + tax).
Formula to calculate a price with tax

But if you copy the formula to the other cells, there is a problem.

  • Only the first formula is linked to cell E1. ☹️
  • When you copy down, the references change.
  • In E6, you have an error because the formula uses cell E3, which contains text.
  • This is where the dollar sign is needed 😉
Error in the formula after the copy

Shortcut to add the dollar sign

Adding dollar signs to a formula is such a common task that there is a shortcut for typing the $ symbol: the F4 key.

  1. Write the beginning of your formula.
  2. Select the cell you want to lock.
  3. Press F4 — two dollar signs are added to the cell reference automatically.
  4. Finish your formula.
Add dollar with the shortcut F4

Now practice it yourself

Time to put the dollar sign to work on a real case: you want to control the weight of strawberry trays, which should be 250 grams (cell E2).

250 gram strawberry tray

Question: How do you write the formula in C2 so you can copy it to the other cells?

Study case with strawberries

You now have everything you need to work it out: lock the reference to E2 with the dollar sign so it stays fixed when the formula is copied down to the other rows.

You've seen why the dollar sign matters, how to add it with the F4 shortcut, and how it keeps a reference fixed while the rest of a formula adapts when copied.

Continue learning

Keep building your Excel skills with the rest of this tutorial series: