You are on page 1of 4

IF

Name Sales Target Result


Alan 1000 5000 Not Achieved =IF(C4>=D4,"Achieved","Not Achieved")
Bob 6000 5000 Achieved =IF(C5>=D5,"Achieved","Not Achieved")
Carol 2000 4000 Not Achieved =IF(C6>=D6,"Achieved","Not Achieved")

What Does It Do?


This function tests a condition.
If the condition is met, it is considered to be TRUE.
If the condition is not met, it is considered as FALSE.
Depending upon the result, one of two actions will be carried out.

Syntax:
=IF(Condition,ActionIfTrue,ActionIfFalse)

The Condition is usually a test of two cells, such as A1=A2.


The ActionIfTrue and ActionIfFalse can be numbers, text or calculations.

Example:
Each has their own target which they must reach.
The =IF() function is used to compare the Sales with the Target.
=IF(C5>=D5,"Achieved","Not Achieved") If the Sales are greater than or equal
=IF(C4>=D4,"Achieved","Not Achieved") If the Sales do not reach the target th
Note that the text used in the =IF() function needs to be placed in double quotes "Achieve
d","Not Achieved")
d","Not Achieved")
d","Not Achieved")

reater than or equal to the Target the result of Achieved is shown.


ot reach the target the result of Not Achieved is shown.
uble quotes "Achieved".
IF

NAME SCORE REMARKS


Anderson 95 Pass Note:
Bautista 85 Pass Remarks should be "Pass" or "Fail"
Block 65 Fail
Burrows 79 Pass
Chandler 69 Fail
Colby 95 Pass
Crosby 90 Pass
Dove 70 Fail
Frantz 96 Pass
Gonzalez 93 Pass
Humphy 75 Pass
Kale 80 Pass
Ledesma 93 Pass
d be "Pass" or "Fail"

You might also like