Cellgrids Cellgrids
Home › Practice questions › IF › Question 3

Excel IF Practice Question: Using IF, give a 5% bonus on sales above 50000 and 0 otherwise. Fill C2 and C3.

By Rinkesh Shah, founder of Cellgrids.

The question

Using IF, give a 5% bonus on sales above 50000 and 0 otherwise. Fill C2 and C3.

The data

ABC
1RepSalesBonus
2Asha62000?
3Ben48000?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • C2 = 3100
  • C3 = 0

How it works

Explanation: IF can return a calculation, not only text. Here the true result is 5% of the sales figure.
Syntax: =IF(B2>50000,B2*5%,0)
Asha: 62000 is above 50000, so 62000 x 5% = 3100. Ben: 48000 is not above 50000, so the bonus is 0.

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 →

IF syntax

=IF(logical_test, value_if_true, value_if_false)

Returns one value if a condition is true, another if false. Flagging an employee as Pass or Fail based on a score cutoff. Full IF guide.

More IF practice questions

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