Lesson at a Glance
Excel for Absolute Beginners · Session 5
Excel Session 5: Nested IF Made Easy
Move from two simple answers to smarter Excel decisions. Learn how Nested IF checks conditions step by step, then use that thinking to build Grade, Stock, Payment, and Student Grading systems.
Simple IF gives two answers. Nested IF gives many answers.

Before You Begin
You are not starting from zero.
Sessions 1–4 already gave you the foundation: cells, rows, columns, formulas, functions, ranges, the Fill Handle, larger tables, sorting, and Simple IF.
Session 5 builds directly on those skills.
← Review Session 4: IF StatementsWatch · Learn · Practise
Watch the Session 5 lesson
Use the video for the guided demonstration, and keep this written lesson open whenever you want to slow down, revisit a formula, or understand the logic more deeply.
Having trouble with the player? Watch on YouTube.
Reconnect
Remember Simple IF?
In Session 4, Excel learned its first decision. A Simple IF statement asks one question and chooses between two possible answers.
=IF(D7>=41,"Pass","Fail")One question. Two possible answers. That is a Simple IF statement.
See the Problem First
What if two answers are not enough?
Pass or Fail works because there are only two possible responses. But real-life decisions often have more possibilities.
Pass or Fail
Two possible answers.
A, B, C, D, or E
Five possible answers.
Out · Low · Okay · Full
Four possible answers.
Not Paid · Partly · Fully
Three possible answers.
The Simple IF formula is not wrong. The problem has changed. When the problem changes, our thinking must also change.
Meaning Before Mechanics
What is Nested IF?
It allows Excel to check several conditions one by one and return different possible answers.
Do not think of Nested IF as one frightening long formula. Think of it as a sequence of small decisions written together in Excel language.
Think Like Excel
How Nested IF checks conditions
Suppose a student has an average of 45. Excel does not guess the grade. It checks one condition at a time.
Build It Slowly
Build your first Nested IF formula
Now we translate the Grade rules into Excel language. We will build the formula one decision at a time.
Check for Grade A
=IF(D7>=81,"A"If D7 is 81 or above, return A.
If not A, check for B
,IF(D7>=61,"B"If the first check is false, Excel continues.
If not B, check for C
,IF(D7>=41,"C"Now Excel checks the next boundary.
If not C, check for D
,IF(D7>=21,"D"If this check is true, return D.
Otherwise, return E
,"E"))))If none of the earlier conditions is true, E is the remaining answer.
=IF(D7>=81,"A",IF(D7>=61,"B",IF(D7>=41,"C",IF(D7>=21,"D","E"))))If the average is 81 or more, give A. Otherwise, if it is 61 or more, give B. Otherwise, if it is 41 or more, give C. Otherwise, if it is 21 or more, give D. Otherwise, give E.
Why so many brackets? They are not random. Each closing bracket simply closes one IF function that was opened earlier.
Logic Matters
Why checking order matters
Excel follows the order we give it. It stops at the first TRUE condition. That means a badly arranged Nested IF can return the wrong answer even when every individual condition looks reasonable.
=IF(D7>=21,"D", ... )If D7 is 90, the very first condition is already TRUE. Excel could return D and stop.
=IF(D7>=81,"A", ... )For this Grade System, checking the highest grade first keeps the categories correct.
Excel does exactly what we tell it to do, in the order we tell it to do it.
There is no single magic order for every Nested IF formula. The order must follow the logic of the problem.
Grade System
Excel checks a student's Average and returns A, B, C, D, or E.
=IF(D7>=81,"A",IF(D7>=61,"B",IF(D7>=41,"C",IF(D7>=21,"D","E"))))Check for A first. If not A, check B. If not B, check C. If not C, check D. If none matches, return E.
If the Average is 75, what Grade should Excel return?
75 is not 81 or above, but it is 61 or above. Excel therefore returns Grade B.
Stock Level System
Different table. Different answers. Same Nested IF thinking.
In this problem, checking zero first gives the clearest logic. If there is nothing available, Excel should immediately return Out of Stock.
=IF(D8=0,"Out of Stock",IF(D8<50,"Low Stock",IF(D8<100,"Okay Stock","Full Stock")))If quantity is 0, show Out of Stock. Otherwise, if it is below 50, show Low Stock. Otherwise, if it is below 100, show Okay Stock. Otherwise, show Full Stock.
If the quantity is 50, what should Excel show?
50 is not less than 50, so Excel continues. It is less than 100, so Excel returns Okay Stock.
Payment Status System
Nested IF can compare one cell with another, not only a cell with a fixed number.
Here Excel checks the Paid Amount in D8 and compares it with the Amount Required in C8.
=IF(D8=0,"Not Paid",IF(D8<C8,"Partly Paid","Fully Paid"))If nothing has been paid, show Not Paid. Otherwise, if the Paid Amount is less than the Amount Required, show Partly Paid. Otherwise, show Fully Paid.
Required: 100,000 · Paid: 40,000. What should the status be?
The person has paid something, but the Paid Amount is still less than the Amount Required.
Build a connected Student Grading System
Now the skills you learned separately begin working together inside one worksheet.
Some columns contain information we type. Other columns contain answers Excel calculates or decides. This is the difference between a table that stores information and a system that responds to information.
=ROW()-3Quick refresher: creates the serial number from the worksheet row.
=SUM(D4:F4)Adds the three subject marks.
=AVERAGE(D4:F4)Calculates the student's average.
=IF(H4>=81,"A",IF(H4>=61,"B",IF(H4>=41,"C",IF(H4>=21,"D","E"))))The Average now becomes the information Excel uses to decide the Grade.
=RANK(G4,$G$4:$G$23,0)Compares the student's Total with all the other totals.
The Remark formula does not check the original marks. It checks the Grade that Excel has already decided.
=IF(I4="A","Outstanding",IF(I4="B","Very Good",IF(I4="C","Average",IF(I4="D","Weak","Very Weak"))))If Grade is A, return Outstanding. If B, return Very Good. If C, return Average. If D, return Weak. Otherwise, return Very Weak.
Change the original subject marks and watch the connected columns respond. Total, Average, Grade, Position, and Remark can all update automatically because the formulas are linked.
Troubleshoot Calmly
Common Nested IF mistakes
A wrong result is information. It tells you there is something to check. Work through the formula calmly instead of starting again blindly.
Wrong checking order
Excel may stop at a condition that becomes TRUE too early.
Missing quotation marks
Text answers such as "A" or "Low Stock" need quotation marks.
Missing closing brackets
Every IF function you open must eventually be closed.
Wrong cell reference
Make sure Excel is checking the cell that actually contains the value you mean.
Wrong comparison sign
For example, > and >= do not mean the same thing at a boundary.
Copying before testing
Confirm the first formula works before using the Fill Handle.
Guided Practice
Try it yourself
Do not only read formulas. Predict what Excel should return. The goal is to train the thinking that sits behind the formula.
Average = 81. What Grade?
81 qualifies for the first condition: 81 or above.
Quantity = 99. What Status?
99 is below 100, but not below 50.
Required = 100,000 · Paid = 120,000. What Status?
The Paid Amount is not zero and is not below the Amount Required, so the final answer applies.
Before the Assignment
Session 5 recap
- Simple IF gives two answers.
- Nested IF gives many answers.
- Nested IF means one IF function inside another IF function.
- Excel checks one condition at a time.
- Once Excel finds the first TRUE condition, it returns the answer and stops checking.
- Checking order matters because Excel follows the logic we give it.
- Write one correct formula, then use the Fill Handle to repeat the pattern.
- The same decision pattern can work with grades, stock, payments, and connected systems.
Think clearly, and Excel becomes powerful.
Independent Practice
Complete the Session 5 assignment
Your assignment practises Nested IF in two systems: Grade System and Stock Status System. The workbook gives live feedback so you can correct mistakes and retry.
The goal is not speed. The goal is understanding. A high score is good, but understanding why your formula works is even better.