Category: FUNCTION | Updated: 2026-11-20
How to Use the OR Function in Google Sheets | Check If Any Condition Is Met
How to Use the OR Function
The OR function is a logical function that checks whether at least one of the specified conditions is TRUE. In practice, it is commonly combined with the IF function to branch logic such as “if A or B, do X.”
Syntax
=OR(logical_expression1, [logical_expression2, ...])
- logical_expression1: The first condition to evaluate, such as
A2="Tokyo"orB2>=80(required). - logical_expression2, …: Additional conditions to evaluate, separated by commas (optional).
Table Example
Here is an example using the sales representative list below to classify the region as "Kanto" if the assigned area is "Tokyo" or "Chiba", and "Other" otherwise.
| Row | Column A (Rep) | Column B (Assigned Area) | Column C (Region) |
|---|---|---|---|
| 1 | Rep | Assigned Area | Region |
| 2 | Sato | Tokyo | =IF(OR(B2="Tokyo", B2="Chiba"), "Kanto", "Other") |
| 3 | Suzuki | Osaka | =IF(OR(B3="Tokyo", B3="Chiba"), "Kanto", "Other") |
| 4 | Takahashi | Chiba | =IF(OR(B4="Tokyo", B4="Chiba"), "Kanto", "Other") |
- Row 2 formula:
=IF(OR(B2="Tokyo", B2="Chiba"), "Kanto", "Other")→ Result:Kanto - Row 3 formula:
=IF(OR(B3="Tokyo", B3="Chiba"), "Kanto", "Other")→ Result:Other - Row 4 formula:
=IF(OR(B4="Tokyo", B4="Chiba"), "Kanto", "Other")→ Result:Kanto
Common Errors and Notes
- Double quotes are required when comparing text: If you omit quotes around text like
OR(B2=Tokyo, B2=Chiba), a#NAME?error occurs. Always writeB2="Tokyo". - When all arguments are blank or text (
#VALUE!): If none of the arguments can be evaluated as a boolean (TRUE/FALSE), a#VALUE!error is returned. - Using with
ARRAYFORMULA: UsingORinsideARRAYFORMULAevaluates the entire array as a single combined result rather than row by row. To express an OR condition in an array formula, use the addition operator instead, such as(condition1)+(condition2)>0.
Frequently Asked Questions
Q. What result does the OR function display when used on its own?
A. It returns the boolean value "TRUE" if at least one of the specified conditions is met, or "FALSE" if none of the conditions are met. Combine it with the IF function when you want to display custom text.
Q. What is the difference between the OR and AND functions?
A. OR returns TRUE when "at least one condition is met", whereas AND returns TRUE only when "all conditions are met simultaneously".