Lesson 2 of 8 · see all lessons
  1. Formulas from zero

    1. 1. Excel basics: cells, ranges and your first SUM formula
    2. 2. Relative vs absolute references in Excel ($A$1)
    3. 3. How to use the IF function in Excel (and nested IF)
  2. Answer questions with conditions and lookups

    1. 4. SUMIFS and COUNTIFS in Excel: add and count with conditions
    2. 5. How to use XLOOKUP in Excel (and VLOOKUP when you have to)
  3. Organize and summarize the month

    1. 6. How to sort, filter and make a table in Excel
    2. 7. How to make a pivot table in Excel
    3. 8. Excel practice: build a monthly sales report

10 min

Relative vs absolute references in Excel ($A$1)

A relative reference like A1 shifts when you copy a formula; an absolute one like $A$1 stays put. Learn when you need the $ and the F4 shortcut.

By the end of this lesson you can

  • Fill one formula down 30 rows and predict what each copy becomes
  • Lock a cell with $ so every copy points at it
  • Choose between $A$1, A$1 and $A1
  • Explain #DIV/0! and #REF! after a copy or a delete

From earlier lessons · 1 of 2

What does =SUM(E2:E31) return on the café sheet?

Pick one answer.

From earlier lessons · 2 of 2

E2 holds the text 8 cups. What does =E2*F2 show?

Pick one answer.

Monday morning. The manager wants a money Total on all 30 rows before the 10 o'clock meeting. You type one formula and copy it down in a second. Then you add one more column, copy it the same way, and 29 cells fill with errors.

Take a guess

H2 holds =E2*F2. You copy H2 and paste it into H3. What formula is in H3?

No pressure. Guess now, and the lesson will show you if you were right.

[8]

Build the Total column

By default every reference is relative. Excel stores =E2F2 in H2 as the two cells three and two columns to my left, same row. Copy it one row down and it still means same row, so it becomes =E3F3.

That's exactly what a Total column needs. Type Total in H1 and the formula in H2. Then fill it down: double-click the small square at the bottom-right of H2 (the fill handle), or select H2:H31 and press Ctrl+D.

[3][8]

excel
H1: Total
H2: =E2*F2 (fill down to H31)
P6: Revenue
Q6: =SUM(H2:H31)
Expected: H2 28.00, H3 13.75, H31 38.50, and Q6 649.00, the café's March revenue. Excel may show 28 or 649 with no decimals. To see two decimals, select column H and pick Number in the number format box on the Home tab.

Step through

Filling =E2*F2 down column H

  1. =E2*F20H2
  2. 1
  3. 2
  4. 3
  5. 4

You type one formula in H2.

Step 1 of 4

[8]

When copying breaks: the share of the month

The manager asks: what share of March revenue was each line? That's each Total divided by the month's revenue in Q6. Type Share in I1 and the formula below in I2, then fill it down. To read the results as percentages, select column I, click the % button on the Home tab, then click Increase Decimal once.

excel
I2: =H2/Q6 (then fill down)
Expected: I2 shows 4.3%. Then I3 to I31 all show #DIV/0!.

Predict, then reveal

Why does every cell from I3 down show #DIV/0!?

[8]

Fix it with an absolute reference. A dollar sign in front of the column letter and the row number locks both: $Q$6. Every copy now points at Q6.

You don't have to type the dollars. Click inside Q6 in the formula and press F4. Each press cycles through $Q$6, Q$6, $Q6 and Q6. On a Mac, Cmd+T does the same.

[3][8]

excel
I2: =H2/$Q$6 (fill down to I31)
Expected: I2 4.3%, I3 2.1%, I31 5.9%. Check: =SUM(I2:I31) gives 100%.

The café plans a price rise. You type 10% into Q8. Which formula in J2 can you fill down to show every new price?

Pick one answer.

[8]

excel
J1: New price
J2: =F2*(1+$Q$8) (fill down)
Expected with 10% in Q8: J2 3.85, J5 (a sandwich) 7.15. Change Q8 to 20% and J2 becomes 4.20 at once.

Mixed references: lock only one side

A mixed reference locks just the column ($A1) or just the row (A$1). It matters when you copy a formula both down and across. The table below follows one formula copied two rows down and two columns right.

[8]

Match

A formula with this reference is copied two rows down and two columns right. Match each to what it becomes.

Pick an item on the left, then its match on the right.

You want a reference that always stays in column Q but moves down with each row. Which do you write?

Pick one answer.

[8]

[4][7]

Someone deletes column Q by mistake. What do the cells in column I show?

Pick one answer.

[7]

In Google Sheets: $ references work the same way. F4 cycles the $ signs while you type a formula (Fn+F4 on a Mac), and Ctrl+D fills down. You can also drag the small blue square at the corner of a selected cell to fill.

[27][28]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 16

Worth keeping

  1. Plain references move with the formula; that's what fills a Total column in one step.
  2. Put $ on the part that must not move: $Q$6 locks one cell for every copy.
  3. F4 cycles $Q$6 → Q$6 → $Q6 → Q6.
  4. #DIV/0! after a fill often means a reference slid onto an empty cell; #REF! means a referenced cell was deleted.

Every row now has a Total. The manager's next question isn't a number: which orders were big? You could colour 30 rows by eye. Or one formula can decide for each row. It reads a test, picks an answer, and gets fooled by exactly one row on the boundary.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (6)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [3]Microsoft Support: Keyboard shortcuts in Excel
  2. [4]Microsoft Support: SUM function
  3. [7]Microsoft Support: How to correct a #REF! error
  4. [8]Microsoft Support: Switch between relative, absolute, and mixed references
  5. [27]Google Docs Editors Help: Automatically create a series or list
  6. [28]Google Docs Editors Help: Keyboard shortcuts for Google Sheets