Your SlideShare is downloading. ×
0
Click to continue
It answers the question, “Is this

true or false?”, then proceeds to
do something as a result.
Is the value in column A

larger than the value in
column B?
 
A
1
2
3
4
5
6
7

23
13
12
44
100
3
40

B
36
20
2
325
10
50...
Formula:
=IF(A2>B2,"yes","no")

If false, the cell
displays No

If true, the cell
displays Yes
Logical test using operator...
First No

Second No

Is Column A bigger?

13

20

no

12

2

yes

44

325

no

100

10

yes

3

50

no

40

100

no
=IF(n4="m", "y", "n")
Text must be put in apostrophes e.g. “y”
=IF(R6=0,C6,"Paid")
 The contents of C6 will be displayed if R6=0
 C6 could contain another formula!
=IF(E33=1, “Good", “Below Average”))
This structure is repeated before the False
value.
=IF(E33=1, “Good", IF(E33=2, “Aver...
= IF(G4>=80, "A", IF(G4>=65,
"B", IF(G4>=50, "C", IF(G4
>=45, "D", "Fail"))))
 Using AND + OR:

=IF((AND(P24=0)),"Breakeven",(IF((OR(P24>0)),"Profit", "loss")))
 Using Named cells

=IF(Product=“Penc...
The end

www.dragon-class.com
Upcoming SlideShare
Loading in...5
×

If statements

263

Published on

Learn how to create IF statements and NESTED IF statements for Excel etc.

Published in: Education, Technology, Spiritual
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
263
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "If statements"

  1. 1. Click to continue
  2. 2. It answers the question, “Is this true or false?”, then proceeds to do something as a result.
  3. 3. Is the value in column A larger than the value in column B?   A 1 2 3 4 5 6 7 23 13 12 44 100 3 40 B 36 20 2 325 10 50 100
  4. 4. Formula: =IF(A2>B2,"yes","no") If false, the cell displays No If true, the cell displays Yes Logical test using operators (=, <, <=, >, >=)
  5. 5. First No Second No Is Column A bigger? 13 20 no 12 2 yes 44 325 no 100 10 yes 3 50 no 40 100 no
  6. 6. =IF(n4="m", "y", "n") Text must be put in apostrophes e.g. “y”
  7. 7. =IF(R6=0,C6,"Paid")  The contents of C6 will be displayed if R6=0  C6 could contain another formula!
  8. 8. =IF(E33=1, “Good", “Below Average”)) This structure is repeated before the False value. =IF(E33=1, “Good", IF(E33=2, “Average", “Below Average”)) An extra bracket is added at the end
  9. 9. = IF(G4>=80, "A", IF(G4>=65, "B", IF(G4>=50, "C", IF(G4 >=45, "D", "Fail"))))
  10. 10.  Using AND + OR: =IF((AND(P24=0)),"Breakeven",(IF((OR(P24>0)),"Profit", "loss")))  Using Named cells =IF(Product=“Pencil", “Student is organised!”, “Student needs pencil!”)  Using Absolute cell references =IF($R$6=“Prussian Blue”, “My favourite colour”, “Not so good!")
  11. 11. The end www.dragon-class.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×