Pinterest Pixel

IF Function: Introduction

John Michaloudis
What does it do? .

What does it do?

It returns a value that you set if a condition is met, and a value if it is not met

Formula breakdown:

=IF(Logical Test,Value if True,Value if False)

What it means:

=IF(The condition to be checked, Value to be shown if the condition is met, Value to be shown if condition is not met)


The IF function is probably one of the most used Excel functions because it is easy to understand and very flexible when you apply it to real life situations.

Here I will show you a couple of ways that you can use the IF function to get you up and going.

Download excel workbookIf.xlsx

We want to show a Bonus value if sales are bigger than $3000, and No Bonus is shown if this condition is not met. Afterwards let’s try computing the 10% bonus!

STEP 1: We need to enter the IF function in a blank cell:
=IF(
IF Function: Introduction

 

STEP 2: The IF arguments:

Logical_test

What is your condition?

Sales Rep has sold more than 3000 dollars.
=IF(D15>3000,
IF Function: Introduction

Value_if_true

What value should be displayed if the condition is true?

We want “Bonus” to be displayed
=IF(D15>3000, "Bonus",
IF Function: Introduction

Value_if_false

What value should be displayed if the condition is false?

We want “No Bonus” to be displayed
=IF(D15>3000, "Bonus", "No Bonus")
IF Function: Introduction

Apply the same formula to the rest of the cells by dragging the lower right corner downwards.

IF Function: Introduction

STEP 3: Let us now aim to give the 10% Bonus!

The IF arguments:

Logical_test

What is your condition?

Sales Rep has sold more than 3000 dollars.
=IF(D15>3000,
IF Function: Introduction

 

Value_if_true

What value should be displayed if the condition is true?

We want give a 10% bonus based on sales
=IF(D15>3000, D15*10%,
IF Function: Introduction

Value_if_false

What value should be displayed if the condition is false?

Then no bonus amount should be given, type in 0
=IF(D15>3000, D15*10%, 0)
IF Function: Introduction

Apply the same formula to the rest of the cells by dragging the lower right corner downwards.

IF Function: Introduction

You now have all of results!

 

 

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  IFERROR Function: Introduction

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...