Fix Excel IF and OR Formulas That Fail on Another Worksheet
Question details
The user needs to find why an IF and OR formula works on one worksheet but returns an error or unexpected result on another worksheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A formula references data from a separate worksheet and behaves differently between sheets in the same workbook.
- Observed behavior
- The IF and OR formula works in one worksheet but fails, calculates incorrectly, or does not update as expected in another worksheet.
Open both the working and failing formulas side by side in the formula bar. Make sure the source worksheet is available and that its sheet name has not been changed.
Compare the working and failing formulas and correct worksheet references
Use this method when the same logic works on one sheet but not on another, as a small reference difference can change the result.
Cross-sheet formulas must point to the correct worksheet, cells, and ranges. Compare every character, including quotation marks, commas, parentheses, dollar signs, and sheet names.
Select the cell that works and the cell that fails, then review each formula in the Formula Bar. You can also use Formulas > Show Formulas to display formulas across the worksheet.
Confirm that each reference uses the intended worksheet name, such as 'Data Sheet'!A2. If a sheet name contains spaces, it must be enclosed in single quotation marks.
Check whether references such as A2, $A$2, A$2, and $A2 changed when the formula was copied. Edit the reference in the Formula Bar or press F4 while editing to change the reference type.
Make sure every condition is inside the OR function and that the IF function has the intended value_if_true and value_if_false arguments, for example: =IF(OR('Data'!A2="Yes",'Data'!B2>0),"Pass","Fail").

Check source values, calculation mode, and circular references
Use this method when the formula is valid but returns the wrong result, old results, or an error caused by the underlying data.
Test the formula and source data in a new workbook
Use this method when formulas and references appear correct but the issue occurs only in one workbook.
Check Cross-Sheet IF and OR Formulas in WPS Spreadsheets
WPS Spreadsheets lets you inspect cross-sheet references, edit IF and OR formulas in the formula bar, and recalculate worksheets to identify why a formula returns a different result on another sheet.
- 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, choose Spreadsheets, and open the Excel workbook containing the working and failing formulas.
- 2. Compare formulas in the formula bar: Select the working formula cell and then the failing cell. Review each expression in the Formula Bar and verify the sheet names, ranges, and absolute references.
- 3. Trace the referenced cells: Select the failing formula, open the Formulas tab, and use Trace Precedents to identify the source cells used by the formula.
- 4. Check source cell formats: Select the referenced data cells, then use Home > Number Format to confirm that numeric conditions use numbers rather than text values.
- 5. Recalculate and test the formula: Edit the formula in the Formula Bar, press Enter, and recalculate the workbook to confirm that the updated IF and OR conditions return the expected result.

Frequently Asked Questions
Why does my IF formula work on one sheet but not when it references another sheet?
The formula may reference a different cell, an incorrectly spelled sheet name, or a value stored in a different format. Compare the working and failing formulas character by character in the Formula Bar.
How do I reference a worksheet with spaces in its name in an Excel formula?
Place the sheet name in single quotation marks. For example, use 'Sales Data'!A2 instead of Sales Data!A2.
Can text-formatted numbers cause an OR formula to fail?
Yes. A text value such as "10" may not behave like the number 10 in comparisons. Check the source cell with ISNUMBER, then convert text numbers using the Convert to Number option or VALUE function.
Where can I change Excel calculation mode to Automatic?
Go to the Formulas tab, select Calculation Options, and choose Automatic. Press F9 afterward to recalculate the workbook.
How can I find a circular reference affecting my formula?
In Excel, go to Formulas > Error Checking > Circular References. Excel lists cells involved in the loop so you can revise the references.




