How to Fix Excel Formulas Returning FALSE, #REF!, or #N/A Errors
Question details
The user needs to fix spreadsheet formulas that are returning FALSE or unexpected error codes like #REF! and #N/A.
- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Writing or evaluating formulas that reference numerical values or lookup tables, but the expected results are not calculating properly.
- Observed behavior
- Formulas return FALSE or errors like #REF! or #N/A, frequently because referenced numerical values are stored as text or cell references are invalid.
Check the referenced cells for a small green triangle in the top-left corner, which typically indicates that numbers are formatted as text.
Convert Text-Formatted Numbers to Numeric Values
Formulas often fail when numbers are stored as text. Converting them back to numeric values resolves logical and lookup errors.
When data is imported or entered incorrectly, numbers may be treated as text strings. This causes mathematical operations and lookup functions to mismatch and return errors.
Highlight the cells or the column containing the numbers that might be stored as text.
Click the warning icon (an exclamation mark) that appears next to the selected cells, and choose 'Convert to Number' from the drop-down list.
Alternatively, go to the Home tab, click the Number Format drop-down menu, and select 'General' or 'Number'.
Adjust the Formula to Compare Against Text
If you cannot change the source cell formats, modify your formula to compare values against text strings by wrapping your criteria in quotation marks.
Use IFERROR and LOOKUP to Handle Errors Cleanly
For a more robust solution that prevents ugly #N/A or #REF! errors from displaying, wrap your logic inside an IFERROR function.
Troubleshoot Formula Errors Easily with WPS Office
WPS Spreadsheet provides intuitive error checking and one-click data type conversions to quickly resolve FALSE, #REF!, and #N/A formula issues without hassle.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the document containing the formula errors.
- 2. Identify errors: Look for cells with green error indicators or use the 'Error Checking' tool located under the Formulas tab.
- 3. Convert data types: Select the text-formatted numbers and click 'Convert to Number' from the floating warning menu to instantly fix reference mismatches.
- 4. Apply IFERROR functions: Use the WPS formula builder to quickly wrap your existing LOOKUP or IF functions with IFERROR for cleaner data presentation.

Frequently Asked Questions
Why does my spreadsheet formula return FALSE instead of an error?
A formula typically returns FALSE when an IF statement evaluates to false but lacks the optional [value_if_false] argument. You can fix this by adding a specific return value for the false condition in your formula.
What causes a #REF! error in my spreadsheet?
The #REF! error occurs when a formula refers to a cell that is no longer valid. This usually happens when the referenced cell, row, or column was deleted or pasted over.
How do I fix an #N/A error in lookup formulas?
The #N/A error means the lookup value wasn't found in your source data. Ensure that the data types match exactly (e.g., both are formatted as numbers or both as text) and check for hidden trailing spaces in the cells.
Can I hide formula errors automatically?
Yes, you can use functions like IFERROR to catch errors and return a blank string ("") or a custom message instead of the default error code. Simply wrap your original formula inside =IFERROR(your_formula, "").




