SlideShare a Scribd company logo
SPREADSHEET
IF Function
Cambridge AS & A Level
Satree Phuket School - IPC
anjan.mahanta@satreephuketipc.com
IF Statement
IF(logical_test, value_if_true, value_if_false)
=IF(A4>B4,"No1 is greater","No2 is greater")
Nested IF Statement
The IF function can be nested, when you have multiple conditions to meet. The FALSE value
is being replaced by another If function to make a further test. For example, look at the formula
below.
IF(logical_test, value_if_true, if (logical test, value if true, value_if_false))
Example:
=IF(G4>=80,4,IF(G4>=70,3,IF(G4>=60,2,IF(G4>=50,1,0))))
Problem 1
Use Nested IF Statement to Calculate the Grade
Problem 1
Use Nested IF Statement to Calculate the Grade
Problem 1 || Solution
Use Nested IF Statement to Calculate the Grade
=IF(G4>=80,4,IF(G4>=70,3,IF(G4>=60,2,IF(G4>=50,1,0))))
Problem 2
Use Nested IF Statement to Calculate the Hotel Bill
Problem 2 || Solution
Use Nested IF Statement to Calculate the Hotel Bill
• Step 1: In A4 Enter Check in Date
• Step 2: In B4 Enter Check out Date
• Step 3: In C4 Enter Room Type (Single, Double or Special)
• Step 4: In D4
=IF(C4="single",500,IF(C4="double", 1000,IF(C4="special",2000,0)))
• Step 5: In E4 =(B4-A4)*D4
• Step 6: In F4 Enter discount %
• Step 7: =E4-((E4/100)*F4)
Problem 3
Use Nested IF Statement to Calculate the Salary Deduction
Problem 3
Use Nested IF Statement to Calculate the Salary Deduction
Problem 3 || Solution
Deduction
=IF(C4>=71950,C4*28%,IF(C4>=29701,C4*25%,C4*15%))
Net Salary
=C4 - D4

More Related Content

PPTX
Mapping Cardinalities
PDF
Le Wagon Australia Workshop
PPT
Presentation on bbs cable powerpoint
PPTX
Description of IF and Nested IF in MS. Excel.pptx
PPT
Excel IF, IFs.ppt
PPTX
ICT chapter 1.pptx
PPT
If and nested if statements
PPT
Ch05 Visual Aids
Mapping Cardinalities
Le Wagon Australia Workshop
Presentation on bbs cable powerpoint
Description of IF and Nested IF in MS. Excel.pptx
Excel IF, IFs.ppt
ICT chapter 1.pptx
If and nested if statements
Ch05 Visual Aids

More from Anjan Mahanta (20)

PDF
Paper 2 – Exam Revision Notes.pdf
PDF
Project management part 2
PDF
Project management part 1
PDF
13.03 - Satellite communication systems
PDF
13.02 Network Security
PDF
13.01 Network Components
PDF
The role and impact of IT in society
PDF
Emerging Technologies
PDF
Conditional statistical functions
PDF
Spreadsheet lookup functions
PDF
Spreadsheet text functions
PDF
Spreadsheet Date & Time Functions
PDF
Networks and the effects of using them
PDF
Scratch Animation
PDF
Expert Systems
PDF
Storage devices and media
PDF
Using Network
PDF
The Digital Divide
PDF
Chapter 4 E-Safety and Health & Safety
PDF
Chapter 3 Monitoring and Control
Paper 2 – Exam Revision Notes.pdf
Project management part 2
Project management part 1
13.03 - Satellite communication systems
13.02 Network Security
13.01 Network Components
The role and impact of IT in society
Emerging Technologies
Conditional statistical functions
Spreadsheet lookup functions
Spreadsheet text functions
Spreadsheet Date & Time Functions
Networks and the effects of using them
Scratch Animation
Expert Systems
Storage devices and media
Using Network
The Digital Divide
Chapter 4 E-Safety and Health & Safety
Chapter 3 Monitoring and Control
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Institutional Correction lecture only . . .
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Complications of Minimal Access Surgery at WLH
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial disease of the cardiovascular and lymphatic systems
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Renaissance Architecture: A Journey from Faith to Humanism
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Supply Chain Operations Speaking Notes -ICLT Program
STATICS OF THE RIGID BODIES Hibbelers.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Basic Mud Logging Guide for educational purpose
Abdominal Access Techniques with Prof. Dr. R K Mishra
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Microbial diseases, their pathogenesis and prophylaxis
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Institutional Correction lecture only . . .
O5-L3 Freight Transport Ops (International) V1.pdf
Cell Types and Its function , kingdom of life
Complications of Minimal Access Surgery at WLH
Ad

Spreadsheet if and nested if function

  • 1. SPREADSHEET IF Function Cambridge AS & A Level Satree Phuket School - IPC anjan.mahanta@satreephuketipc.com
  • 2. IF Statement IF(logical_test, value_if_true, value_if_false) =IF(A4>B4,"No1 is greater","No2 is greater")
  • 3. Nested IF Statement The IF function can be nested, when you have multiple conditions to meet. The FALSE value is being replaced by another If function to make a further test. For example, look at the formula below. IF(logical_test, value_if_true, if (logical test, value if true, value_if_false)) Example: =IF(G4>=80,4,IF(G4>=70,3,IF(G4>=60,2,IF(G4>=50,1,0))))
  • 4. Problem 1 Use Nested IF Statement to Calculate the Grade
  • 5. Problem 1 Use Nested IF Statement to Calculate the Grade
  • 6. Problem 1 || Solution Use Nested IF Statement to Calculate the Grade =IF(G4>=80,4,IF(G4>=70,3,IF(G4>=60,2,IF(G4>=50,1,0))))
  • 7. Problem 2 Use Nested IF Statement to Calculate the Hotel Bill
  • 8. Problem 2 || Solution Use Nested IF Statement to Calculate the Hotel Bill • Step 1: In A4 Enter Check in Date • Step 2: In B4 Enter Check out Date • Step 3: In C4 Enter Room Type (Single, Double or Special) • Step 4: In D4 =IF(C4="single",500,IF(C4="double", 1000,IF(C4="special",2000,0))) • Step 5: In E4 =(B4-A4)*D4 • Step 6: In F4 Enter discount % • Step 7: =E4-((E4/100)*F4)
  • 9. Problem 3 Use Nested IF Statement to Calculate the Salary Deduction
  • 10. Problem 3 Use Nested IF Statement to Calculate the Salary Deduction
  • 11. Problem 3 || Solution Deduction =IF(C4>=71950,C4*28%,IF(C4>=29701,C4*25%,C4*15%)) Net Salary =C4 - D4