If statements

504 views

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
504
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
24
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

×