1. Why #REF! Happens (And How to Fix It Fast)
#REF! means a formula points to a cell or range that no longer exists. The three most common causes are:
- Deleting a referenced row, column, or worksheet tab: If
=B2+C2loses ColumnC, it becomes=B2+#REF!. PressCtrl+Z(orCmd+Z) immediately to restore deleted cells, or re-select the valid range. - Pasting a relative formula too far up or left: Copying
=B2-B1from row 2 into row 1 shiftsB1above row 1, producing=B1-#REF!. - Invalid column index in VLOOKUP: Asking
=VLOOKUP(A2, D2:E10, 3, FALSE)for column3of a 2-column range returns#REF!.
2. Absolute vs. Relative Cell References (Dollar Sign $)
Adding $ signs (shortcut: press F4 while editing a cell reference in Excel or Google Sheets) locks the column letter, row number, or both when dragging formulas across rows and columns:
| Reference Style | Example | Behavior When Copied Down or Across |
|---|---|---|
| Relative | D2:D100 |
Both column and row shift as you copy the formula |
| Absolute (Locked) | $D$2:$D$100 |
Column and row stay fixed—essential for XLOOKUP, SUMIFS, and tax/rate cells |
| Mixed (Row Locked) | D$2 |
Column shifts across, row 2 stays fixed |
| Mixed (Column Locked) | $D2 |
Column D stays fixed, row shifts down |
Worked Example: Locking a Tax Rate or Lookup Table
=B2 * $G$1
When you drag =B2 * $G$1 down to row 3, B2 updates to B3 while $G$1 stays locked on your single rate cell instead of drifting to empty cells below G1.
Error-Handling Reminder: Avoid hiding
#REF! blindly with IFERROR—fix the broken cell reference first so your totals stay accurate.