Use Excel’s IF and OR functions together when a result should appear if any one of several conditions is true.

This guide explains the formula pattern, shows what it returns in realistic examples, and covers the small details that can change how a test behaves.

Excel IF OR formula syntax

The standard pattern is =IF(OR(condition1, condition2), value_if_true, value_if_false).

The OR function checks the listed conditions and returns TRUE when at least one is true; IF then returns one value for TRUE and another for FALSE.

  • condition1 and condition2 are logical tests, such as a comparison with a cell value.
  • value_if_true is returned when any OR condition is true.
  • value_if_false is returned only when every OR condition is false.

For example, =IF(OR(A2="Approved",B2="Approved"),"Proceed","Review") returns Proceed if either A2 or B2 contains Approved.

If neither cell contains that text, it returns Review.

Example: Check whether a value meets either threshold

Suppose column A contains a department name and column B contains a sales total.

In C2, enter:

=IF(OR(A2="North",B2>=10000),"Bonus eligible","Not eligible")

This marks a row as eligible if the department is North or sales are at least 10,000.

The comparison operator >= means greater than or equal to.

For example:

  • If A2 is South and B2 is 12,000, the result is Bonus eligible because the sales condition is true.
  • If A2 is North and B2 is 7,500, the result is also Bonus eligible because the department condition is true.
  • If A2 is South and B2 is 7,500, the result is Not eligible because both conditions are false.

Copy the formula down column C to apply the same tests to the other rows.

Relative references such as A2 and B2 adjust as the formula is filled down.

Test more than two conditions

OR accepts multiple logical tests.

Add each condition as another argument, separated by commas:

=IF(OR(A2="Urgent",B2="High",C2>7),"Escalate","Standard")

The formula returns Escalate if the status in A2 is Urgent, the priority in B2 is High, or the number in C2 is greater than 7.

It returns Standard only if none of those tests is true.

In locales that use a semicolon as the function argument separator, replace commas with semicolons.

For example: =IF(OR(A2="Urgent";B2="High";C2>7);"Escalate";"Standard").

The separator depends on regional settings, not on the logic of the formula.

Use IF with OR and AND together

Sometimes one condition can be an alternative while another must also be satisfied.

Nest OR inside AND to express that rule.

For instance, if a customer must be in the North or West region and have an order of at least 500, use:

=IF(AND(OR(A2="North",A2="West"),B2>=500),"Discount","No discount")

Here, the region test is true when either region matches, but the order threshold must be true as well.

The formula returns Discount only when the customer is in one of the two regions and the order is at least 500.

Parentheses make the grouping clear: OR checks the alternatives, AND combines that result with the required minimum.

This is useful for eligibility rules, status labels, and conditional calculations with mixed requirements.

Return a number or calculate a value

The true and false results do not have to be text.

IF can return numbers or perform calculations.

For example, this formula applies a 10% discount when either the customer is a member or the order is at least 500:

=IF(OR(A2="Member",B2>=500),B2*0.9,B2)

If B2 is 600, the formula returns 540.

If A2 is Member and B2 is 300, it returns 270.

If neither condition is met, it returns the original amount in B2.

Format the result cell as currency if you want it displayed as a monetary value.

Check a cell against several possible values

For a short list of exact text options, OR works directly:

=IF(OR(A2="Open",A2="Pending",A2="On hold"),"Active case","Closed or unknown")

This checks whether A2 matches any of the three listed statuses.

Excel’s text comparisons in these formulas are generally case-insensitive, so Open and OPEN match.

Extra spaces can still prevent a match; a cell containing Open has a trailing space and may not equal Open.

For a longer list of options, a lookup or counting formula can be easier to maintain than a long OR expression.

You could keep permitted statuses in a range such as F2:F10 and test membership with =IF(COUNTIF(F2:F10,A2)>0,"Active case","Closed or unknown").

This can make updates simpler because the list is stored in cells rather than embedded in the formula.

Common errors and edge cases

  • Using AND when you mean OR: AND requires every condition to be true.

    OR requires only one.
  • Leaving text unquoted: Text criteria such as Approved must be in double quotation marks, as in A2="Approved".
  • Mixing up commas and semicolons: If Excel reports a formula error, check the argument separator used by your regional settings.
  • Comparing numbers stored as text: A value that looks numeric may be stored as text, which can affect comparisons such as B2>=10000.

    Check the cell’s data type or convert the value to a number.
  • Blank cells: A test such as A2="" treats a genuinely empty cell and a formula returning an empty string as blank.

    To check for a nonblank cell, use A2<>"".
  • Errors in a condition: If a referenced cell contains an error, the condition may produce an error that flows through the formula.

    Correct or handle the source error when appropriate.

For example, to return a label when either A2 is blank or B2 is below 10, use =IF(OR(A2="",B2<10),"Check row","OK").

A blank A2 makes the first test true; a B2 value below 10 makes the second test true.

Compatibility in Excel and Google Sheets

IF and OR are established spreadsheet functions supported in current desktop and web versions of Microsoft Excel, including Microsoft 365, as well as older Excel releases such as Excel 2016 and Excel 2019.

Google Sheets also supports the same basic IF and OR structure.

Basic formulas shown here do not require dynamic array features.

When sharing a workbook across spreadsheet apps, check regional separators and any app-specific functions added to a more complex formula.

The core pattern =IF(OR(test1,test2),result_if_true,result_if_false) is widely compatible.

In a Google Sheet configured for a locale that uses semicolons, use semicolons between arguments as well.