Excel OR function
Returns TRUE when at least one condition is true. In Spanish Excel it is called O.
Syntax
English Excel
=OR(logical1, [logical2], …)
Spanish Excel (Mexico)
=O(valor_lógico1, [valor_lógico2], …)
Spanish Excel (Spain, Latin America)
=O(valor_lógico1; [valor_lógico2]; …)
| Argument | What it is |
|---|---|
| logical1 | The first condition. |
| logical2optional | More conditions. |
Example
OR returns TRUE when at least one condition is met. To compare with text, put it in quotes: C2="Premium".
=IF(OR(B2>=999,C2="Premium"),"Free","Paid")
Common mistake
In Spanish Excel the function is O. Inside FILTER, add the conditions instead of using OR.
About Ads
This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.
Ads help us keep WebHerramientas free for everyone
Practice OR
Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons
IF with OR
OR returns TRUE when at least one condition is met. To compare with text, put it in quotes: C2="Premium".
Shipping is "Free" if the total is 999 or more, or if the customer is Premium. Otherwise, "Paid".
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | Total | Customer | Shipping | |
| 2 | P-301 | 1,250 | Regular | ||
| 3 | P-302 | 640 | Premium | ||
| 4 | P-303 | 999 | Regular | ||
| 5 | P-304 | 420 | Regular | ||
| 6 | P-305 | 1,800 | Premium | ||
| 7 |
Tip: while typing, click a cell or drag across several to insert their reference.
Frequently asked questions
- What is OR called in Spanish?
- In Spanish Excel it is O. The formula =IF(OR(B2>=999,C2="Premium"),"Free","Paid") is written =SI(O(B2>=999;C2="Premium");"Gratis";"Con costo") (or with commas in Mexico).
- Why does OR use semicolons in some Excel versions?
- It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
- What is the most common OR mistake?
- In Spanish Excel the function is O. Inside FILTER, add the conditions instead of using OR.