Cellgrids Cellgrids
Home › Practice questions › OR › Question 4

Excel OR Practice Question: Give a Discount if the customer is a member (Yes) or the amount is above 5000,…

By Rinkesh Shah, founder of Cellgrids.

The question

Give a Discount if the customer is a member (Yes) or the amount is above 5000, otherwise No discount. Put it in D2 to D4.

The data

ABCD
1NameAmountMemberResult
2Rahul3000Yes?
3Priya7000No?
4Amit2000No?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • D2 = Discount
  • D3 = Discount
  • D4 = No discount

How it works

Explanation: The customer gets a discount for either reason, so OR is used.
Syntax: =IF(OR(C2="Yes",B2>5000),"Discount","No discount")
Rahul is a member: Discount. Priya spent 7000: Discount. Amit is neither: No discount.

Try it yourself in the live sheet

Type your formula in the highlighted cell and get instant feedback. Free, no Excel install needed.

Try this question in the live sheet →

OR syntax

=OR(logical1, [logical2], ...)

Returns TRUE if at least one condition given is true. OR is used to build decision rules directly into a spreadsheet instead of manually judging each row. Full OR guide.

More OR practice questions

All practice questions · Excel exercises · Interview prep · Cheat sheet