Fix #REF! Error & Dollar Sign ($) Cell References in Excel

Understand why #REF! appears when rows, columns, or tabs are deleted—and how locking ranges with $ signs prevents shifted formulas when copying down.

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:

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.
Editorial & Accuracy Note: Tested across Microsoft Excel and Google Sheets with worked sample inputs and outputs. Part of the Know Unlimited Excel & Google Sheets Hub.