Abekus — AI learning and job matching platform logo

Mixed references with a dollar sign

Lesson 2 of 75 in Excel Interview Mastery. Free to read, with practice questions to try.

Mixed references explained

Every cell reference has two parts: a column letter and a row number. A mixed reference locks one of those parts with a dollar sign and leaves the other free to change when the formula is copied. This sits between a relative reference, where both parts shift, and an absolute reference such as $E$2, where neither part shifts.

On the Sales sheet, Rate sits in column F. If the Rate has to stay in column F while the row moves down with each invoice, a mixed reference is the tool for the job.

Column-absolute references

A column-absolute reference puts the dollar sign in front of the column letter, as in $H2. The column H is fixed, so copying the formula sideways keeps pointing at column H. The row number is free, so copying it down moves the row.

Suppose I2 contains =$H2. Copying it to other cells gives:

Copied toFormula there
J2 (one column right)=$H2, column still H
I3 (one row down)=$H3, row moves to 3

Row-absolute references

A row-absolute reference puts the dollar sign in front of the row number, as in I$1. The row 1 is fixed, while the column I is free. This suits a header row, such as a row of rates, that every row below should read from.

Suppose I2 contains =I$1. Copying it gives:

Copied toFormula there
J2 (one column right)=J$1, column moves to J, row stays 1
I3 (one row down)=I$1, row still 1

Mixed references in a grid

In a grid, a column of quantities and a row of rates meet in the middle. Put Qty 12 (from INV-1042) and Qty 4 (from INV-1043) in H2 and H3, and rates 450.00 and 1250.00 in I1 and J1. Write =$H2*I$1 in I2. The $H2 keeps the quantity column fixed, and I$1 keeps the rate row fixed.

Copy the formula to the other cells and it multiplies each quantity by each rate:

CellFormulaValue
I2=$H2*I$15,400
J2=$H2*J$115,000
I3=$H3*I$11,800
J3=$H3*J$15,000

Why $H$2 is too rigid

A fully absolute reference such as $H$2 locks both the column and the row. In a grid where the quantity changes with each row, that lock is wrong. Writing =$H$2*$I$1 in I2 and copying it to every cell gives the same answer everywhere, because every copy still reads H2 and I1.

CellFormulaValue
I2=$H$2*$I$15,400
J2=$H$2*$I$15,400
I3=$H$2*$I$15,400, should be 1,800
J3=$H$2*$I$15,400, should be 5,000

Toggling with F4

While editing a formula, click on a reference or place the cursor inside it, then press F4 (on Windows) to cycle through the four forms. Each press moves the dollar signs, so you can pick the right type without typing them by hand. The cycle starts from a relative reference:

PressesReference shownWhat stays fixed
0H2Nothing
1$H$2Column and row
2H$2Row only
3$H2Column only
4H2Back to nothing

Practice questions

  1. 1.

    In a grid, the formula =$H2*I$1 sits in I2. H3 holds 4 and J1 holds 1250.00. The formula is copied from I2 to J3. What does J3 show?

    • A.

      5,000

    • B.

      1,800

    • C.

      5,400

    • D.

      15,000

    Show answer
    Answer: A.

    5,000

    Copying I2 to J3 moves the formula one column right and one row down. The $H column stays fixed, so the quantity is H3, which holds 4. The I$1 row stays fixed but moves one column right to J$1, which holds 1250.00. The result is 4 x 1250.00 = 5,000. 1,800 is 4 x 450.00, which ignores the column move. 5,400 is 12 x 450.00, from row 2. 15,000 is 12 x 1,250.00, which uses row 2 quantity.

  2. 2.

    A learner writes =$H$2*$I$1 in I2 and copies it to I3, where H3 holds 4. H2 holds 12 and I1 holds 450.00. What does I3 show?

    • A.

      1,800

    • B.

      5,400

    • C.

      4

    • D.

      450.00

    Show answer
    Answer: B.

    5,400

    Both references are fully absolute, so I3 still reads H2 and I1. It gives 12 x 450.00 = 5,400, the same as I2. The correct value for row 3 is 4 x 450.00 = 1,800, which needs $H2 with the row free, as in =$H2*I$1.

  3. 3.

    With the cursor inside the reference H2 in the formula bar, one press of F4 on Windows gives which reference?

    • A.

      H$2

    • B.

      $H2

    • C.

      $H$2

    • D.

      H2

    Show answer
    Answer: C.

    $H$2

    On Windows, F4 cycles through the four forms in this order: H2, $H$2, H$2, $H2, then H2 again. One press from the relative H2 gives $H$2, which locks both the column and the row. H$2 needs two presses, $H2 needs three, and H2 comes back after four.

4 more questions and the timed quiz for this lesson open with a free account.

Lessons in Excel Foundations

  1. Relative vs absolute references
  2. Mixed references with a dollar sign
  3. Referencing another sheet
  4. Copying a formula down a column
  5. Dates as serial numbers
  6. Numbers stored as text
  7. Blank vs zero in aggregates
  8. Error values and their causes
  9. Countif vs countifs
  10. Sumif criteria syntax
  11. Averageifs with two criteria

75 lessons across 9 topics. See the full course