EXCEL SOLUTIONS

OR function in Excel

Returns TRUE when at least one of the conditions is true.

BeginnerLogic

Syntax

=OR(logical1, [logical2], ...)
Arguments of OR
ArgumentWhat it means
logical1The first condition.
logical2, ...More conditions.

Examples with results

Every result below is calculated by the practice engine on the sample data shown, not typed in by hand.

Office supplies sales (fictional)

RowABCDE
1ItemQtyUnit priceRegionDate
2Pen101.5North2025-01-15
3Notebook512South2025-02-03
4Pen201.5South2025-02-28
5Stapler240North2025-03-10
6Folder153.25East2025-03-22
7Notebook812East2025-04-05
8Pen121.5North2025-04-18
9Marker302South2025-05-02
Office supplies sales (fictional) Row 1 holds the headings. All data is fictional. Dates are year-month-day.

Download CSV

  • =OR(D2="North",D2="East")TRUE

    Is the order from the North or the East?

Monthly budget (fictional)

RowABC
1CategoryPlannedActual
2Rent12001200
3Groceries400462
4Transport150128
5Utilities180171
6Fun120160
7Savings300300
Monthly budget (fictional) Row 1 holds the headings. All data is fictional. Dates are year-month-day.

Download CSV

  • =IF(OR(C3>B3,C6>B6),"Check budget","Fine")Check budget

    Flag if Groceries or Fun went over

Try it yourself

Change the formula or switch to other sample data.

Press Calculate to see the result.

The practice box runs in your browser with BDK’s own calculator, which covers about 60 common functions. Cell references work as in Excel (B2, B2:B9). Your formulas are not saved or sent anywhere. For anything unusual, check the result in Excel itself.

How people use OR at work

  • Operations

    Flag stock that is low or unlisted.

    =IF(OR(C3<=D3,D3=""),"Check","OK")Check
    Data: Stock levels (fictional)
  • Education

    Needs help in any subject below 50.

    =IF(OR(B5<50,C5<50,D5<50),"Support","OK")Support
    Data: Class scores (fictional)

Common mistakes and tips

  • OR is true if any condition is true, not only one.

Works in

All versions of Excel, and Google Sheets.

Related formulas

ANDIF

Need Something Different? Let’s Talk.

Looking for different features or something built around your workflow? Share your idea with us.