Bird
Raised Fist0
Excelspreadsheet~10 mins

Reference errors and troubleshooting in Excel - Cell-by-Cell Formula Trace

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Sample Data

Sample data with numbers in columns A and B, formulas in columns C and D demonstrating reference errors and troubleshooting.

CellValue
A110
A220
A330
B15
B20
B315
C1=A1/B1
C2=A2/B2
C3=A3/B4
D1=SUM(A1:A3)
D2=VLOOKUP(25, A1:B3, 3, FALSE)
Formula Trace
=A3/B4
Step 1: B4
Step 2: A3 / #REF!
Cell Reference Map
    A     B     C     D
1 | 10 |  5  | =A1/B1 | =SUM(A1:A3)
2 | 20 |  0  | =A2/B2 | =VLOOKUP(25, A1:B3, 3, FALSE)
3 | 30 | 15  | =A3/B4 |       
4 |    |     |        |       
References in formulas: C1 uses A1 and B1; C2 uses A2 and B2; C3 uses A3 and B4 (which is missing); D1 sums A1 to A3; D2 uses VLOOKUP with range A1:B3 and column 3 (which is invalid).
Result
    A     B     C       D
1 | 10 |  5  | 2       | 60
2 | 20 |  0  | #DIV/0! | #REF!
3 | 30 | 15  | #REF!   |    
Final results: C1 calculates 10/5 = 2; C2 divides by zero causing #DIV/0! error; C3 references missing B4 causing #REF! error; D1 sums 10+20+30=60; D2 returns #REF! because VLOOKUP requests column 3 which does not exist in A1:B3.
Sheet Trace Quiz - 3 Questions
Test your understanding
What error appears in cell C2 and why?
A#DIV/0! because dividing by zero is not allowed
B#REF! because B2 is missing
C#NAME? because formula is incorrect
DNo error, result is 0
Key Result
Reference errors occur when formulas refer to cells that do not exist or invalid ranges.

Practice

(1/5)
1. What does the #REF! error in Excel usually mean?
easy
A. The formula has a syntax error.
B. The formula contains a division by zero.
C. A formula refers to a cell that was deleted or moved.
D. The worksheet is protected and cannot be edited.

Solution

  1. Step 1: Understand what #REF! means

    The #REF! error appears when a formula tries to use a cell reference that no longer exists, often because the cell was deleted or moved.
  2. Step 2: Compare with other error types

    Division by zero shows #DIV/0!, syntax errors show #NAME? or similar, and protection errors do not show #REF!.
  3. Final Answer:

    A formula refers to a cell that was deleted or moved. -> Option C
  4. Quick Check:

    #REF! = deleted/moved cell reference [OK]
Hint: Remember #REF! means missing cell reference [OK]
Common Mistakes:
  • Confusing #REF! with #DIV/0! error
  • Thinking #REF! means syntax error
  • Assuming #REF! means protected sheet
2. Which of these formulas will cause a #REF! error if cell B2 is deleted?
easy
A. =B2 * 2
B. =A1 + C3
C. =SUM(A1:C3)
D. =SUM(B1:B3)

Solution

  1. Step 1: Identify formulas referencing B2 directly

    Only =B2 * 2 has a direct reference to B2. B does not reference B2. C and D use ranges that include B2.
  2. Step 2: Understand effect of deleting B2

    Deleting B2 breaks direct references like in A, causing #REF!. Range references in C and D adjust automatically without error.
  3. Final Answer:

    =B2 * 2 -> Option A
  4. Quick Check:

    Direct reference to deleted cell causes #REF! [OK]
Hint: Direct cell references break when deleted, causing #REF! [OK]
Common Mistakes:
  • Thinking ranges always cause #REF! when a cell is deleted
  • Assuming SUM adjusts all deleted cells without error
  • Ignoring direct references in formulas
3. Given the formula =A1 + B1 in cell C2, what will be the result if row 1 is deleted?
medium
A. 0
B. #REF!
C. Formula adjusts to =A0 + B0
D. #NAME?

Solution

  1. Step 1: Understand what happens when deleting a row

    Deleting row 1 removes cells A1 and B1, so the formula in C2 loses its references.
  2. Step 2: Check formula behavior after deletion

    Excel cannot adjust references to non-existent cells, so it shows #REF! error instead of adjusting to invalid references or zero.
  3. Final Answer:

    #REF! -> Option B
  4. Quick Check:

    Deleting referenced row causes #REF! error [OK]
Hint: Deleting referenced rows causes #REF! error [OK]
Common Mistakes:
  • Thinking formula auto-adjusts to zero
  • Assuming Excel changes references to invalid cells
  • Confusing #REF! with #NAME? error
4. You see a #REF! error in a formula after moving cells. Which action will fix it?
medium
A. Save and close the workbook, then reopen it.
B. Replace the formula with a new one using correct references.
C. Delete the formula cell and re-enter the formula.
D. Undo the move to restore original cell references.

Solution

  1. Step 1: Understand cause of #REF! after moving cells

    Moving cells that formulas reference can break those references, causing #REF! errors.
  2. Step 2: Choose the best fix

    Undoing the move restores the original cell positions and fixes references automatically. Replacing formulas manually is possible but slower and error-prone.
  3. Final Answer:

    Undo the move to restore original cell references. -> Option D
  4. Quick Check:

    Undo restores broken references [OK]
Hint: Undo recent changes to fix broken references quickly [OK]
Common Mistakes:
  • Thinking deleting and retyping fixes references
  • Assuming saving and reopening fixes errors
  • Replacing formulas without checking references
5. You have a formula =VLOOKUP(A2, Sheet2!A:B, 2, FALSE) that returns #REF!. What is the most likely cause?
hard
A. Column 2 does not exist in the range on Sheet2.
B. The lookup value in A2 is empty.
C. Sheet2 is protected and cannot be accessed.
D. The formula syntax is incorrect.

Solution

  1. Step 1: Analyze the VLOOKUP parameters

    The formula looks up A2 in columns A:B on Sheet2 and returns the 2nd column's value.
  2. Step 2: Understand #REF! in VLOOKUP context

    If the column index (2) is larger than the number of columns in the range, Excel returns #REF! because it cannot find that column.
  3. Final Answer:

    Column 2 does not exist in the range on Sheet2. -> Option A
  4. Quick Check:

    VLOOKUP column index > range columns causes #REF! [OK]
Hint: Check VLOOKUP column index vs range width [OK]
Common Mistakes:
  • Assuming empty lookup value causes #REF!
  • Thinking sheet protection causes #REF!
  • Confusing syntax errors with reference errors