Syntax
| Parameter | Description |
|---|---|
| logical1 | Parameter of the OR function. |
| [logical2 | (Optional.) Parameter of the OR function. |
| ...] | Parameter of the OR function. |
Examples
Check for any matching status
=IF(OR(B2="Shipped", B2="Delivered"), "Complete", "In Progress")
Flag values outside a valid range
=IF(OR(A2<0, A2>100), "Out of Range", "Valid")
Weekend detection
=IF(OR(WEEKDAY(A2)=1, WEEKDAY(A2)=7), "Weekend", "Weekday")
Common Errors
One of the conditions is not a valid logical expression. Ensure all arguments evaluate to TRUE or FALSE.
Tips
=IF(AND(A1>0, OR(B1="Yes", C1="Yes")), "Approved", "Denied") requires A1>0 AND at least one Yes.
Use OR in custom data validation formulas to allow multiple valid options beyond what a dropdown list provides.
Instead of =IF(A1="X", TRUE, IF(A1="Y", TRUE, FALSE)), use =OR(A1="X", A1="Y") for cleaner logic.
Try OR in Viztab
Import your data and use OR with 370+ other formulas. No signup required.
Open Viztab