You are on page 1of 5

5/6/2017 ORfunctionOfficeSupport

Sign in

Office

Apps

Install

Account

Training

Admin

Excel / Formulas and functions / Logical / OR function

OR function
Applies To: Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2016 for Mac,
More...

Use the OR function, one of the logical functions, to determine if any conditions in a test are
TRUE.

Example

Technical Details

Examples
https://support.office.com/enus/article/ORfunction7d17ad1487004281b30800b131e22af0 1/5
5/6/2017 ORfunctionOfficeSupport

Here are some general examples of using OR by itself, and in conjunction with IF.

Formula Description

=ORA2>1,A2<100 Displays TRUE if A2 is greater than 1 OR less than 100,


otherwise it displays FALSE.

=IFORA2>1,A2<100,A3,"The Displays the value in cell A3 if it is greater than 1 OR less


value is out of range" than 100, otherwise it displays the message "The value is
out of range".

=IFORA2<0,A2>50,A2,"The Displays the value in cell A2 if its less than 0 OR greater


value is out of range" than 50, otherwise it displays a message.

Sales Commission Calculation

Here is a fairly common scenario where we need to calculate if sales people qualify for a
commission using IF and OR.

https://support.office.com/enus/article/ORfunction7d17ad1487004281b30800b131e22af0 2/5
5/6/2017 ORfunctionOfficeSupport

=IF(OR(B14>=$B$4,C14>=$B$5),B14*$B$6,0) IF Total Sales are greater than or equal to


>= the Sales Goal, OR Accounts are greater than or equal to >= the Account Goal, then
multiply Total Sales by the Commission %, otherwise return 0.

Do you have a specific function question?


Post a question in the Excel community forum

Help us improve Excel


Do you have suggestions about how we can improve the next version of Excel? If so, please
check out the topics at Excel User Voice

See Also
See a video on how to use the IF function

Learn how to use nested functions in a formula

https://support.office.com/enus/article/ORfunction7d17ad1487004281b30800b131e22af0 3/5
5/6/2017 ORfunctionOfficeSupport

IF function

AND function

NOT function

Overview of formulas in Excel

How to avoid broken formulas

Use error checking to detect errors in formulas

Keyboard shortcuts in Excel 2016 for Windows

Keyboard shortcuts in Excel 2016 for Mac

Logical functions reference

Excel functions alphabetical

Excel functions by category

Install Install Admin Training

Was this information helpful? Yes No

https://support.office.com/enus/article/ORfunction7d17ad1487004281b30800b131e22af0 4/5
5/6/2017 ORfunctionOfficeSupport

Learn Devices Microsoft Store


Windows Microsoft Surface View account

Office Xbox Order tracking

Skype PC and laptops Sales & support


Outlook Microsoft Lumia

OneDrive Microsoft Band

MSN Microsoft HoloLens

Downloads Values Company


Download Center Diversity and inclusion Careers

Windows downloads Accessibility About Microsoft


Windows 10 apps Microsoft in education Company news

Office apps Microsoft philanthropies Investors

Microsoft Lumia apps Corporate social responsibility Research

Internet Explorer Privacy at Microsoft Site map

English United States


Contact Us Privacy & Cookies Terms of use & sale Trademarks Office accessibility Legal

2017 Microsoft

https://support.office.com/enus/article/ORfunction7d17ad1487004281b30800b131e22af0 5/5

You might also like