Tabellab

Project 1: Cell References and a Tax-Rate Cell

Lesson 1 of 20Lab

All lessons

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — €9.90
Loading the spreadsheet…

Why cell references are the first thing to practise

If you are preparing for an Excel certification exam, or simply want to prove on a job application that you can use Excel properly, you will quickly notice that almost every task depends on one skill: writing a formula once and copying it correctly. A price list, a sales summary, a commission table, a grade book: they all have one formula per column that is copied down and sometimes across. If the references in that formula move the wrong way, every copied cell is wrong, and in a graded task only the result in the right cell counts.

This course is independent practice. Tabellab is not affiliated with, endorsed by or connected to Microsoft or any certification body. Microsoft, Excel, MOS and MO-200 are trademarks of Microsoft Corporation. The projects here train the skills in an exam-like style, but they are not real exam questions, and the format, timing and scoring of any real exam are set by its owner, so check the official information for the exam you plan to take.

In this free first project you complete the price list of a fictional stationery wholesaler, Fernhill Stationery. You calculate the net amount, the sales tax with one shared tax-rate cell and the gross amount for eight products, then fill a price grid with a single mixed-reference formula. It takes about ten minutes, and it covers relative, absolute and mixed references, the F4 key and the idea behind named ranges.

The core idea: what moves when you copy

When you copy a formula, Excel does not copy the addresses literally. It copies the relationship. =B2*C2 in D2 really means "the cell two columns to my left times the cell one column to my left, in my row". Copied to D3, that relationship becomes =B3*C3. This is called a relative reference, and it is exactly what you want for row-by-row calculations.

Sometimes one cell must stay fixed for every row. The tax rate in B11 is a good example: every product uses the same rate. If you write =D2*B11 and copy it down, the row number moves too, and E3 becomes =D3*B12, which points at an empty cell. The tax silently becomes zero. The fix is an absolute reference: =D2*$B$11. The dollar signs lock both the column B and the row 11, so the reference never moves.

Between the two there are mixed references. B$11 locks only the row, $B11 locks only the column. Mixed references are what make a two-way grid possible: one formula, copied down and across, that always reads its row input from one column and its column input from one row.

Press F4 to cycle through the four reference typesB11relative$B$11absoluteB$11row locked$B11column lockedF4F4F4F4 again: back to relativecopy down: B12copy right: C11copy down: $B$11copy right: $B$11copy down: B$11copy right: C$11copy down: $B12copy right: $B11The $ sign locks the part that follows it: the column letter or the row number.
The four reference types and what happens to B11 when the formula is copied one row down or one column right.

Read a dollar sign as "lock what follows". In $A15, the $ comes before A, so the column is locked and the row is free. In B$14, it comes before 14, so the row is locked and the column is free.

Worked example: the Fernhill price list

Fernhill's order sheet lists eight products with unit price and quantity. The tax rate is an example rate of 8% in B11. Here is the completed table, with net = unit price × quantity, tax = net × rate and gross = net + tax.

ProductUnit priceQtyNet (D)Tax (E)Gross (F)
A4 copy paper, 500 sheets5.4940219.6017.57237.17
Gel pens, 12-pack8.9025222.5017.80240.30
Spiral notebook A53.2060192.0015.36207.36
Lever arch file4.7530142.5011.40153.90
Sticky notes, 6 pads6.3045283.5022.68306.18
Desk organizer18.508148.0011.84159.84
Highlighters, 4-pack4.1035143.5011.48154.98
Stapler12.9010129.0010.32139.32
Total2531,480.60118.451,599.05

Take the lever arch files in row 5: 4.75 × 30 = 142.50 net, 142.50 × 8% = 11.40 tax, and 142.50 + 11.40 = 153.90 gross. The formulas in row 5 are =B5*C5, =D5*$B$11 and =D5+E5. Row 2 holds the same formulas with row number 2, because you type them once in row 2 and copy them down to row 9.

Fernhill price list: net amount and 8% tax per lineNet amountTax (8%)0100200300Copy paper237.17Gel pens240.30Notebook A5207.36Lever arch file153.90Sticky notes306.18Desk organizer159.84Highlighters154.98Stapler139.32
Net amount (sky) and 8% tax (peach) for each product line. The label shows the gross amount, net plus tax.

If you change the tax rate in B11 to 10%, every tax and gross amount updates at once. That is the practical reason for a single input cell: one change, no hunting through formulas. It is also how a grader can check your work: if the rate changes and your results do not follow, a typed number is hiding somewhere.

The price grid. Below the list, Fernhill wants selling prices for four cost prices and three markups. Price = cost × (1 + markup). The costs run down column A (A15:A18), the markups run across row 14 (B14:D14). One formula in B15 fills the whole grid:

=$A15*(1+B$14)

Copied down, $A15 becomes $A16, $A17 and so on, because the row is free. Copied across, it stays in column A, because the column is locked. B$14 does the opposite: it moves to C$14 and D$14 across, but always stays in row 14. The result:

Cost \ markup25%40%60%
2.403.003.363.84
5.807.258.129.28
12.5015.6317.5020.00
18.9023.6326.4630.24

For example, C17 is 12.50 × 1.40 = 17.50. Here is what each formula becomes after copying, including the mistake that a missing $ causes:

CellFormulaCopied toBecomes
D2=B2*C2D9=B9*C9
E2=D2*$B$11E9=D9*$B$11
F2=D2+E2F9=D9+E9
B15=$A15*(1+B$14)D18=$A18*(1+D$14)
E2 without $=D2*B11E3=D3*B12 (empty cell, tax 0)

How to do it in Excel, step by step

These steps work in the lab above and in desktop Excel. In Excel on the web the shortcuts are mostly the same.

  1. Click D2, type =B2*C2 and press Enter.
  2. Click E2, type =D2*B11, then put the cursor on B11 in the formula bar and press F4 once. The reference becomes $B$11. Press Enter.
  3. Click F2 and type =D2+E2.
  4. Select D2:F9 and press Ctrl+D to fill all three formulas down at once. Alternatively, select D2:F2 and double-click the small square at the bottom right of the selection, the fill handle.
  5. Press Ctrl+` (the key left of 1 on many keyboards) to show formulas. Check that E9 reads =D9*$B$11. Press it again to go back to results.
  6. Click B15 and type =A15*(1+B14). Put the cursor on A15 and press F4 three times to get $A15. Put it on B14 and press F4 twice to get B$14.
  7. Select B15:D18 and press Ctrl+D, then Ctrl+R, or drag the fill handle down and then across.
  8. Optional: to name the tax cell, select B11 and choose Formulas › Define Name, enter TaxRate and write =D2*TaxRate. The lab grid has no named ranges, so use $B$11 there.
  9. Format the money columns with Home › Number › Currency or Ctrl+Shift+$, so the results read as prices.
On many laptops F4 controls the screen or volume. Hold Fn and press F4, or type the $ signs by hand. In Excel for Mac the shortcut to toggle references is Cmd+T.

Working against the clock

Practice projects in this course come with a suggested time, so you learn to work steadily. A few habits help more than speed typing. Read every task once before you start, because later tasks often reuse earlier columns. Type the first formula carefully, check it in one row with real numbers, and only then copy it. Use Ctrl+` to scan a whole column of formulas in a second. And never type a result by hand: even if the number is right, a grader that changes an input will expose it.

It also pays to check one value mentally. If the paper costs 5.49 and you order 40, the net must be a little under 220, and the tax at 8% a little under 18. If your sheet shows 219.60 and 17.57, you can move on with confidence. If it shows 0 tax, you know a reference has moved.

Named ranges or dollar signs?

Both approaches keep a reference fixed, and in your own workbooks you can choose. A name such as TaxRate makes a formula easier to read: =D2*TaxRate says what it does, while =D2*$B$11 makes the reader look up B11. Names also survive when you insert rows above the input cell, although absolute references adjust to inserted rows too, so both stay correct. The Name Box to the left of the formula bar is a quick alternative to Formulas › Define Name: select B11, click into the Name Box, type TaxRate and press Enter.

Dollar signs, on the other hand, are faster to type with F4, work in every grid including the lab above, and are what mixed references need: there is no way to lock only the row of a name. In practice most people use both, names for a handful of key inputs and dollar signs for grids and lookups. Whatever you choose, be consistent within one workbook so that the next person can follow it.

Checking your work like a grader

A useful habit is to check your sheet the way an automatic grader or a careful reviewer would. Three checks catch almost every reference error in a project like this one:

  1. Change an input. Set B11 to 10% and confirm that every tax and gross value changes. Change a markup in C14 and confirm that the whole column C of the grid changes and nothing else.
  2. Show formulas. Press Ctrl+` and read the first and last row of every column. The first and last formulas should differ only in the parts that are meant to move.
  3. Check a total. Add a quick =SUM(D2:D9) below the net column. Fernhill's net total should be 1,480.60, and the gross total should equal the net total times 1.08.

Excel certification practice: a price list with net, tax and gross formulas and a locked tax-rate cell
Each project in the course is a small workbook with graded cells, built around the fictional Fernhill Stationery.

Common mistakes and how to spot them

  • Forgetting the $ on a shared input. =D2*B11 copied down points at B12, B13 and so on. Spot it: the first row is right, every row below shows zero tax or an odd number.
  • Locking too much in a grid. =$A$15*(1+$B$14) gives the same price in every cell. Spot it: the grid shows one repeated value.
  • Locking the wrong part. =A$15*(1+$B14) swaps the locks, so copying reads costs from row 15 only and markups from column B only. Spot it: B15 is correct, but the cells next to it and below it are not.
  • Calculating gross with the wrong formula. =D2*B11 in the gross column gives the tax, and =D2*(1+$B$11) in the tax column gives the gross. Spot it: tax should be a small fraction of net, gross slightly more than net.
  • Typing results instead of formulas. A typed 142.50 looks right but does not update. Spot it: change B11 and see whether every row follows.
  • Entering 8 instead of 8%. A rate cell with 8 multiplies by eight. Spot it: the tax is larger than the net.

Quick reference: shortcuts and features used in this project

Feature or shortcutWhat it does
F4Cycles B11 → $B$11 → B$11 → $B11 while editing a reference (on some laptops Fn+F4, on a Mac Cmd+T)
Ctrl+DFills the selected range down from the top cell
Ctrl+RFills the selected range right from the leftmost cell
Double-click the fill handleCopies a formula down as far as the column next to it has data
Ctrl+`Shows formulas instead of results, to check what was copied
F2Edits the cell and highlights the cells it refers to
Formulas › Define NameGives a cell a name such as TaxRate, which behaves like an absolute reference
Ctrl+Shift+$Applies a currency format to the selection

Real-world uses

Cell references are not an exam trick. They are what makes everyday spreadsheets reliable:

  • Quotes and invoices. A single VAT or sales tax cell, referenced absolutely, lets you update every line when the rate or the customer changes.
  • Currency conversion. One exchange-rate cell converts a whole column of prices, and next month you update one number.
  • Pricing grids. Costs down the side and markups or discounts across the top, filled with one mixed-reference formula, give sales staff a quick lookup table.
  • Commission and bonus tables. A commission rate in one cell, or a rate per region in one row, drives every salesperson's payout.
  • Budget templates. Growth rates or inflation assumptions in an input area, referenced absolutely, make a template reusable year after year.

What you will build in the rest of this course

This first project is free. The 19 projects below are part of the full course, available for a one-time $9.90. Each one is a short graded workbook with a suggested time, and the last one combines everything in a longer mixed project.

Project 2: SUM, AVERAGE, COUNT, MIN and MAX: You summarise a week of sales for twelve stores, two of which have not reported, and see how SUM, AVERAGE, COUNT, MIN and MAX treat empty cells differently.

Project 3: CONCAT, PROPER, UPPER, LEFT, RIGHT and LEN: You turn a messy HR export into clean full names, department codes, ID numbers and name lengths with CONCAT, PROPER, UPPER, LEFT, RIGHT and LEN.

Project 4: IF, Nested IF and IF with AND: You decide which sales reps met target, calculate their bonus, give each one an A, B or C rating with a nested IF and find who qualifies for an award with IF and AND.

Project 5: Number Formats and Conditional Formatting: You add a percentage change column and apply three conditional-formatting rules: a threshold, a text rule and a top-N rule, and learn how rules interact.

Project 6: Create and Modify Charts: You add yearly totals, build a clustered column chart with an axis title and a pie chart with data labels, then adjust them the way a task describes.

Project 7: Sort and Filter Logic with RANK.EQ, COUNTIF and LARGE: You rank products with RANK.EQ, count by category and threshold with COUNTIF and build a top-3 list with LARGE that updates itself when the data changes.

Project 8: Timed Mixed Project (20 Minutes): You finish with a timed mixed project: pricing ten orders, cleaning customer names and building a region summary with SUMIF and AVERAGEIF, in a suggested 20 minutes.

Summary

A relative reference such as B2 moves when you copy a formula, an absolute reference such as $B$11 never moves, and mixed references such as $A15 and B$14 lock only the column or the row. Press F4 while editing a reference to cycle through the four types. In the Fernhill example, =B2*C2, =D2*$B$11 and =D2+E2 fill the price list from one row, and =$A15*(1+B$14) fills the whole price grid from one cell. The net total is 1,480.60, the tax 118.45 and the gross 1,599.05.

Now scroll up and complete the project in the lab: the three columns D to F and the price grid. When the Coach shows every task as correct, change the tax rate or a markup and confirm that everything updates. That is the best proof that your references are right.

Frequently asked questions

What is the difference between relative and absolute references in Excel?

A relative reference like B2 changes when you copy the formula, so it follows the row or column. An absolute reference like $B$11 stays fixed, which you use for a single input such as a tax rate.

What does F4 do in Excel?

While you edit a formula, F4 cycles the reference under the cursor through B11, $B$11, B$11 and $B11. On many laptops you press Fn+F4, and in Excel for Mac the shortcut is Cmd+T.

When do I need a mixed reference?

When one formula fills a two-way grid. In =$A15*(1+B$14), the cost stays in column A and the markup stays in row 14, so the formula works in every cell of the grid.

Why does my copied formula return zero?

Often a reference to a single input cell was not locked and moved to an empty cell when copied. Show formulas with Ctrl+` and add $ signs to the input reference.

Is a named range the same as an absolute reference?

A name such as TaxRate created with Formulas › Define Name refers to a fixed cell, so it behaves like an absolute reference and makes formulas easier to read.

Is this course an official Microsoft certification course?

No. It is independent exam-style practice and is not affiliated with or endorsed by Microsoft. Check Microsoft's official information for the format and requirements of a real exam.

Keep going: Excel Certification Practice: Exam-Style Tasks for Core Skills (MO-200-Style)

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.

  1. Project 2: SUM, AVERAGE, COUNT, MIN and MAX
  2. Project 3: CONCAT, PROPER, UPPER, LEFT, RIGHT and LEN
  3. Project 4: IF, Nested IF and IF with AND
  4. Project 5: Number Formats and Conditional Formatting
  5. Project 6: Create and Modify Charts
  6. Project 7: Sort and Filter Logic with RANK.EQ, COUNTIF and LARGE
  7. Project 8: Timed Mixed Project (20 Minutes)
  8. Project 9: Multi-Criteria Totals with SUMIFS, COUNTIFS, AVERAGEIFS and MAXIFS
  9. Project 10: Lookups with VLOOKUP, XLOOKUP and an Approximate-Match Discount Table
  10. Project 11: Due Dates and Overdue Days with EDATE, EOMONTH and NETWORKDAYS
  11. Project 12: Text Parsing with MID, FIND, SUBSTITUTE and LEFT
  12. Project 13: Line and Bar Charts with Axis Titles, Markers and Data Labels
  13. Project 14: Data Bars, Colour Scales and Icon Sets
  14. Project 15: Multi-Level Sorting and Filtering with SORTBY and FILTER
  15. Project 16: Missing Data with COUNTBLANK, a Completeness Rate and Sparklines
  16. Project 17: Total Row with SUBTOTAL, Overall Margin and a Combo Chart
  17. Project 18: Region-by-Quarter Summary Matrix with SUMIFS and a Heat Map
  18. Project 19: Timed Mixed Project 2 (20 Minutes): Supplier Payables
  19. Project 20: Final Project: Year-End Sales Dashboard

Buy course — €9.90 See the full course