Skip to content

Lessons in your language are coming soon. Formulas already work in your Excel language.

This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.

Excel function · Logic

OR

Returns TRUE when at least one test is true.

What it does

OR checks two or more tests and returns TRUE if any of them is TRUE. It returns FALSE only when all of them are FALSE.

Syntax

=OR(logical1; [logical2]; …)

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ;

Arguments

logical
A test that gives TRUE or FALSE. Add as many as you need.

Example

Is the day in A2 part of the weekend?

AB
1DayWeekend?
2SundayTRUE

The formula in B2:

=OR(A2="Saturday";A2="Sunday")

Result: TRUE

A2 holds Sunday. The first test (Saturday) is FALSE and the second (Sunday) is TRUE, and one TRUE is enough.

Common mistakes

  • Writing OR between two tests, as in a sentence. Excel has no such operator; put the tests inside OR, separated like any other arguments.
  • Using OR when every condition must hold. That's AND.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishOR,
DeutschODER;
FrançaisOU;
Español (España)O;
Español (México)O,
日本語OR,
한국어OR,
繁體中文OR,
ไทยOR,
ខ្មែរOR,
Tiếng ViệtOR;

Practise it

More from this module

All functions