IF branches logic; IFS (modern Excel) handles multiple conditions without nested nightmares.
IF
=IF(B2>=60,"Pass","Fail")
=IF(A2="","",B2/A2) ' avoid divide by zero'
IFS
=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"F")
AND/OR
=IF(AND(B2>0,C2="Active"),B2*0.1,0)
Important interview questions and answers
- Q: IFS TRUE last?
A: Catch-all default branch. - Q: AND?
A: All conditions must be true.
Self-check
- Write IF for Pass/Fail at 60.
- Why put TRUE last in IFS?
Tip: Prefer IFS over nested IF when you have 3+ branches (modern Excel).
Interview prep
- IFS TRUE?
Default catch-all branch.