Formula Errors

Fix Incorrect IF and OR Formula Results in Excel for the Web

Amos GikundaAmos Gikunda Nov 13, 2026 868 views

Question details

The user needs to identify why an IF and OR formula returns different results in desktop Excel and Excel for the web.

Fix Incorrect IF and OR Formula Results in Excel for the Web
Product
Microsoft Excel desktop and Excel for the web
Device & OS
not provided
Scenario
Opening a workbook in Excel for the web and expecting the same formula results as in the desktop application.
Observed behavior
The IF and OR formula works correctly in desktop Excel but returns incorrect results in Excel for the web.
Before you start

Copy the exact formula and note the values of every cell it references. Confirm whether the online workbook is stored in OneDrive or SharePoint and whether the desktop version is opening that same file.

Solution 1Recommended

Test the IF and OR formula in a new Excel web workbook

Use a clean workbook to determine whether the discrepancy is specific to the original file or its stored data.

1
Confirm the original file location

In OneDrive or SharePoint, locate the workbook and open it in Excel for the web. Compare its name and folder with the file open in desktop Excel to rule out separate copies.

2
Create a clean test workbook

From Excel for the web, choose New blank workbook. Manually enter the input values into the same cell addresses used by the original formula.

3
Enter the exact formula

Select the corresponding result cell, paste the formula into the formula bar, and press Enter. Preserve the original cell references and comparison criteria.

4
Compare the results

Compare the new workbook's result with the original web workbook and desktop Excel. If the clean test produces the expected result, investigate the original workbook's data, references, and calculation state using the checks below.

Test the IF and OR formula in a new Excel web workbook
IF and OR are supported online: Excel for the web supports both IF and OR. A different result alone does not establish that these functions are incompatible with the web version.
Free Microsoft Office alternative

Work with IF and OR Formulas in WPS Spreadsheet

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Excel formats, making migration straightforward. Use WPS Spreadsheet to work with IF and OR formulas locally; it does not repair Excel for the web or its recalculation behavior.

Use IF and OR functions for conditional spreadsheet calculations.Open, edit, and save Microsoft Excel .xlsx and .xls files.Navigate a familiar ribbon-style interface with minimal relearning.Continue local spreadsheet work with a lightweight Office alternative.
QA img-9

Frequently Asked Questions

Does Excel for the web support formulas that combine IF and OR?

Yes. Excel for the web supports IF and OR, including nested formulas such as =IF(OR(A1="Yes",B1="Yes"),"Match","No match"). If results differ from desktop Excel, check the actual input values, references, file version, and calculation state.

Why should I test the formula in a new workbook?

A new workbook helps separate formula logic from issues in the original file. Create a blank workbook in Excel for the web, manually enter the same inputs, and paste the exact formula. If it works there, focus on the original workbook's data and settings.

Can number formatting cause an IF comparison to look incorrect?

Formatting can hide differences in the underlying values. Select the input cell and inspect the formula bar, or increase the displayed decimal places from the Home tab. Use ISNUMBER or ISTEXT in an empty cell to check whether an input is a number or text.

How can I check whether OR is choosing the wrong IF branch?

Enter each comparison from the OR expression into a separate empty cell. OR returns TRUE if at least one comparison is TRUE, so IF will use its true-result branch even when the other comparisons are FALSE.

What should I collect if the results still differ?

Record the exact formula, the underlying values and data types of its referenced cells, and the result in each Excel version. Also note whether the file is on OneDrive or SharePoint and whether the same formula works in a new Excel web workbook.