Excel OR function
OR is "or": one match is enough. It is the natural fit for allow-lists and exception checks — region is North or West, status is Cancelled or Refunded. Like AND, it usually appears as IF's first argument.
Logic · Available in: Excel 97 and every desktop version since
Syntax
OR(logical1, [logical2], ...)What it returns TRUE if any condition is true; FALSE only when all of them are false.
| Arguments | ||
|---|---|---|
| logical1 | required | The first condition. |
| logical2 | optional | Further conditions, up to 255. |
Examples
Two regions count as priority
| Region | Priority |
| North | |
| West | |
| South |
= IF(OR(A2="North",A2="West"),"Priority","Standard")→ Priority
North or West is enough for Priority; everything else is Standard. With many values OR becomes unreadable — a list range plus COUNTIF(...)>0 is easier to maintain.
Common mistakes
- 1.Using OR over a column and expecting a row-by-row answer. OR(A1:A10>5) returns a single result; for per-row checks use ISNUMBER(MATCH(...)) or one formula per row.
- 2.Listing so many values that the formula cannot be maintained. Past three values, switch to COUNTIF(list_range,A2)>0.
- 3.Mixing AND and OR without brackets. Evaluation is not left to right — AND is evaluated first.
How to use it
- 1.Click the cell where the result should appear.
- 2.Type = then the function name, and press Tab to accept it.
- 3.Enter each argument separated by commas; ranges can be dragged with the mouse.
- 4.Press Enter. Drag the fill handle down if the same formula applies to more rows.
Frequently asked questions
What is the syntax of OR?
OR(logical1, [logical2], ...). What it returns: TRUE if any condition is true; FALSE only when all of them are false.
Which Excel versions support OR?
Excel 97 and every desktop version since. It is available in every desktop version unless the note above says otherwise.
Why does OR return an error instead of a value?
Using OR over a column and expecting a row-by-row answer. OR(A1:A10>5) returns a single result; for per-row checks use ISNUMBER(MATCH(...)) or one formula per row.