How to Fix Excel Formula Returning #REF! Errors in One Column on Mac
Question details
The user is encountering a #REF! error in a specific column when using complex array formulas on Mac, while neighboring columns calculate correctly.

- Product
- Microsoft Excel
- Device & OS
- Mac
- Scenario
- Evaluating complex formulas like INDEX, SMALL, and IF referencing a large dataset across multiple columns.
- Observed behavior
- The formula correctly calculates in most columns but throws a #REF! error in one specific output column, likely due to pre-existing errors in the source column or improperly shifted references.
Before troubleshooting the formula, unhide any hidden rows or columns to ensure you have full visibility of your dataset, and make a backup copy of your spreadsheet to prevent accidental data loss while modifying cell references.
Inspect Source Column for Pre-existing #REF! Errors
Identify and remove any existing #REF! errors within the referenced data range that might be cascading into your complex formula.
Formulas like INDEX, MATCH, and SMALL will automatically return a #REF! error if even a single cell in their referenced source range contains a #REF! error. This is a common issue when columns have been partially deleted or imported with missing links.
Click the letter header of the source column (e.g., Column IJ) to select the entire range of data being referenced by your formula.
On your Mac keyboard, press 'F5' or 'Ctrl + G' to open the 'Go To' dialog, then click the 'Special...' button.
Choose the 'Formulas' radio button, uncheck all options except 'Errors', and click 'OK'. Excel will highlight every cell containing an error.
Press the 'Delete' key to clear the invalid cells, or manually fix the broken references inside them. Once resolved, your main formula should calculate correctly.

Correct Shifted Cell References in Copied Formulas
Ensure absolute references were used correctly so the formula doesn't point to an invalid range when dragged across columns.
Fix Formula Errors Easily with WPS Spreadsheets
WPS Spreadsheets provides robust formula auditing tools to quickly trace errors, evaluate complex array formulas, and ensure your data calculates perfectly, all within a familiar interface.
- 1. Open your file in WPS Spreadsheets: Launch WPS Spreadsheets on your Mac and open the affected .xlsx file.
- 2. Navigate to the Formulas tab: Click the 'Formulas' tab in the top ribbon and select the 'Error Checking' tool.
- 3. Use Trace Precedents: Click 'Trace Precedents' on the #REF! cell to visually identify the source of the error.
- 4. Correct the reference: Manually correct the identified cell reference or use the built-in Error Checking dialog to repair the formula.

Frequently Asked Questions
What does the #REF! error mean in Excel?
A #REF! error means a formula refers to a cell that is not valid. This most commonly occurs when cells, rows, or columns that were referenced by formulas have been deleted or pasted over.
Why does my formula work in one column but return #REF! in another?
This usually happens when relative cell references shift as you copy the formula across columns, causing it to look outside the valid worksheet boundaries or reference an empty or deleted column. Using absolute references (adding a '$') prevents this shifting.
How can I quickly find all #REF! errors in my worksheet?
Press F5 (or Ctrl+G) to open the Go To dialog, click 'Special...', select 'Formulas', and check only the 'Errors' box. Excel will highlight all cells containing #REF! and other formula errors.
Can an INDEX or SMALL formula cause #REF! on its own?
An INDEX or SMALL formula will return #REF! if you try to extract data from a row or column number that exceeds the boundaries of the referenced array, or if the source data itself contains a #REF! error.




