#REF!Supported on: Microsoft Excel® & Google Sheets™
How to Fix the #REF! Error in Excel & Google Sheets
The #REF! error occurs when a formula references a cell, row, or column that has been physically deleted or moved out of the active sheet boundaries.
Formula Syntax Comparison
Broken Formula
=SUM(B2:B10, #REF!)
Corrected Formula
=SUM(B2:B10, C2:C10)
Manual Step-by-Step Fix
1
Step 1
Press Ctrl+Z / Cmd+Z immediately if the deletion was recent to restore the missing cell references.
2
Step 2
Inspect the formula bar to see where '#REF!' replaced the original coordinates (e.g., =SUM(A1, #REF!)).
3
Step 3
Update lookup functions to use dynamic modern alternatives like XLOOKUP or INDEX/MATCH that do not break when column positions shift.