Medium: Nested IF wrong band order
Absolute refsNumbers as textLeading spacesFilter left onChart range% vs decimalDuplicate headerROUND vs displayFreeze panesPaste valuesVLOOKUP & textVLOOKUP col indexHLOOKUP TRUESUMIF spacesCOUNTIFS ORIF nest orderDate serialINDEX MATCHWildcard COUNTIFMixed currencyCircular & datesCircular interest3D sum renameNamed range staleCF vs IFPivot staleHard-coded NPVValidation movedPQ step orderTyped-over formulaSUM wrong anchorsFiscal year Apr–MarFind all bugsInterview oral
Bands: Lead≥12, Senior≥8, Mid≥3, else Junior. Broken IF tests ≥3 first — Divya (12) → Mid. Fixed high-to-low → Lead (LibreOffice verified).
≥3 आधी तपासले तर 12 वर्ष Mid होतात. High-to-low → Lead.
पहले ≥3 जाँचने पर 12 वर्ष Mid बनते हैं। High-to-low → Lead।
About this data: Made-up tenure for Divya Rao (Vizag) and Mark Chen (Singapore). Practice only.
Why → What → How
Why: Nested IF short-circuits. Low thresholds first steal higher bands.
What: Five staff. Divya broken Mid → fixed Lead.
How:
- Open Staff.
- Read Divya band.
- Rewrite IF testing 12, then 8, then 3.
- Confirm Lead.
Ravindra Bagale’s Tip
Always nest from the highest cutoff down — or use a lookup table.
Ravindra Bagale’s Tip – मराठी
सर्वोच्च cutoff पासून IF लावा — किंवा lookup table.
Ravindra Bagale’s Tip – हिंदी
सबसे ऊँचे cutoff से IF लगाओ — या lookup table।
Bugs explained (with mini examples)
Bug 1 — Low test first
≥3 catches everyone including Lead.
Bug 2 — No edge-case tests
Check 2,3,7,8,11,12.
Practice tasks (12)
- Task 1. Broken Divya band?Hint: Mid.
- Task 2. Fixed?Hint: Lead.
- Task 3. Write correct IF.Hint: ≥12 Lead…
- Task 4. Mark (6)?Hint: Mid.
- Task 5. Ira (15)?Hint: Lead.
- Task 6. Interview sentence.Hint: “IF order wrong.”
- Task 7. Leela (2)?Hint: Junior.
- Task 8. Sam (9)?Hint: Senior.
- Task 9. Why lookup table helps.Hint: No nest order bugs.
- Task 10. Test boundary 8.Hint: Senior.
- Task 11. Bonus: IFS function if available.Hint: Same order rule.
- Task 12. Document bands.Hint: A11.
In-browser formula check
Type the fixed formula you would put in the named cell. We check formula text — open the workbook for full recalculation.
Step-by-step solution (try first)
- Nest high-to-low.
- Divya → Lead. LO: Mid → Lead.
Quick quiz
Q1. If you test ≥3 before ≥12, a 12-year staffer becomes:
Q2. Fixed Divya band:
Q3. Broken LO Divya:
Q4. Safe nest order:
Q5. Years for Lead in this file: