Using the

Function in Excel
What is an IF statement
A calculation that uses IF-THEN-ELSE logic.
Example:

"If all philosophers are thinkers and John is
a philosopher, then John is a thinker."
Parts of the IF functions
Equal Sign

Cell
Reference

=IF(B2=“Answer","Correct","Wrong")
Function Name

Truth Value

Operator: Can be
= , < , >, >=, <=,

value if True

value if False

Notice, Values are
separated by commas.
Example of If statement in Excel
Function
A
The planets revolve around this.

B
Sun

C
=IF(B1="sun","Correct","Wrong")

Output
A
The planets revolve around this.

B
Sun

C
Correct
Write the correct IF Statement
A
What is the President’s last name

B

C

A
What is the President’s last name

B

C

A
What is the President’s last name

B

A
What is the President’s last name

B

A
What is the President’s last name

B

C
=if(b1=“Obama”, “Correct”,

A
What is the President’s last name

B

C
=if(b1=“Obama”, “Correct”, “Incorrect”)

=if
C
=if(b1=
C
=if(b1=“Obama”,
Write the correct IF Statement
Write an if statement that outputs “True” if B1 is Greater than A1

A
23

B
B

C

35
A

23

35
A

23

=if
B

35
A

23

=if(b1>

35

23

C

B

A

C
=if(b1>a1,

B
35

A

23

C

=if(b1>a1,True,
B

35

C
C
=if(b1>a1,True,False)

Using the IF Function in Excel

  • 1.
  • 2.
    What is anIF statement A calculation that uses IF-THEN-ELSE logic. Example: "If all philosophers are thinkers and John is a philosopher, then John is a thinker."
  • 3.
    Parts of theIF functions Equal Sign Cell Reference =IF(B2=“Answer","Correct","Wrong") Function Name Truth Value Operator: Can be = , < , >, >=, <=, value if True value if False Notice, Values are separated by commas.
  • 4.
    Example of Ifstatement in Excel Function A The planets revolve around this. B Sun C =IF(B1="sun","Correct","Wrong") Output A The planets revolve around this. B Sun C Correct
  • 5.
    Write the correctIF Statement A What is the President’s last name B C A What is the President’s last name B C A What is the President’s last name B A What is the President’s last name B A What is the President’s last name B C =if(b1=“Obama”, “Correct”, A What is the President’s last name B C =if(b1=“Obama”, “Correct”, “Incorrect”) =if C =if(b1= C =if(b1=“Obama”,
  • 6.
    Write the correctIF Statement Write an if statement that outputs “True” if B1 is Greater than A1 A 23 B B C 35 A 23 35 A 23 =if B 35 A 23 =if(b1> 35 23 C B A C =if(b1>a1, B 35 A 23 C =if(b1>a1,True, B 35 C C =if(b1>a1,True,False)