Medium: VLOOKUP, spaces & text numbers
Two sheets: Lookup (grades + product codes) and Bonus (monthly scores). Bugs: trailing space in grade key → #N/A; VLOOKUP with TRUE on an unsorted price list; scores pasted as text so SUM skips them; IF uses >80 so score 80 gets No.
दोन sheets: Lookup आणि Bonus. Bugs: grade key मध्ये trailing space → #N/A; unsorted price list वर VLOOKUP TRUE; scores text असल्याने SUM वगळते; IF >80 मुळे 80 ला No.
दो sheets: Lookup और Bonus. Bugs: grade key में trailing space → #N/A; unsorted list पर VLOOKUP TRUE; text scores से SUM छूटता है; IF >80 से 80 को No मिलता है।
Why → What → How
Why: Paste from HR portals often adds trailing spaces. Approximate VLOOKUP looks “almost right” until one code is wrong. Text numbers break SUM and comparisons.
What: Fix Amit’s A key (TRIM), stop using TRUE on unsorted codes, convert Emma/Omar scores to numbers, change IF to >=80.
How:
- Open sheet Lookup. Find Amit Shah’s #N/A in Rate_found.
- Clear the trailing space in Grade_key (or wrap lookup with TRIM).
- In the product block, notice TRUE approximate match — order code 300 returned the wrong price in LibreOffice on the unsorted list.
- Sort the code table ascending or switch to FALSE and only look up exact codes.
- Open sheet Bonus. Check which scores are left-aligned text.
- Convert with VALUE / multiply by 1 / Paste Special → Add. Fix IF to
>=80.
Ravindra Bagale’s Tip
For IDs and grades always use VLOOKUP … FALSE (or 0). Save TRUE for sorted numeric slabs only.
Ravindra Bagale’s Tip – मराठी
ID आणि grade साठी नेहमी VLOOKUP … FALSE. TRUE फक्त sorted numeric slabs साठी.
Ravindra Bagale’s Tip – हिंदी
ID और grade के लिए हमेशा VLOOKUP … FALSE। TRUE केवल sorted numeric slabs के लिए।
Bugs explained (with mini examples)
Bug 1 — Trailing space → #N/A
Bug 2 — Approximate match on unsorted codes
Bug 3 — Numbers stored as text
Bug 4 — IF uses >80 instead of >=80
Practice tasks (12)
- Task 1. Find which staff row returns #N/A and why.Hint: Look at Grade_key characters.
- Task 2. Fix Amit’s key so Rate_found is 900.Hint: TRIM or delete the space.
- Task 3. Rewrite Rate_found formulas with FALSE and locked table.Hint: $A$6:$B$9,2,FALSE
- Task 4. On the product block, change TRUE to FALSE for code 200.Hint: Exact match returns 20.
- Task 5. Explain what went wrong for order code 300 in the broken file.Hint: TRUE + unsorted list.
- Task 6. On Bonus, mark which Score cells are text.Hint: Often left-aligned or show green mark.
- Task 7. Convert text scores so SUM equals 414.Hint: VALUE or *1.
- Task 8. Change Bonus_IF so score 80 earns Bonus.Hint: Use >= not >.
- Task 9. What should Emma (78) show after the IF fix?Hint: No
- Task 10. Wrap a missing grade with IFNA to show Missing.Hint: =IFNA(VLOOKUP(...),"Missing")
- Task 11. Write one interview sentence: exact vs approximate VLOOKUP.Hint: FALSE for codes; TRUE only on sorted slabs.
- Task 12. Bonus: use TRIM inside VLOOKUP for Grade_key.Hint: =VLOOKUP(TRIM(E6),…)
In-browser formula check
Type the fixed formula you would put in the named cell (Excel or LibreOffice style). We only check the formula text — open the workbook for full recalculation.
Step-by-step solution (try first)
- Change Amit’s Grade_key from
AtoA(or TRIM in the formula). - Keep VLOOKUP range_lookup = FALSE for grades.
- Sort product codes 100,200,300,500; use FALSE for exact order codes; do not approx-match 150.
- Bonus: convert "78" and "92" to numbers; IF
>=80; SUM → 414; Amit → Bonus; Emma → No.
LibreOffice verified: Amit #N/A→900; order 300 wrong price 10→30; Bonus SUM 244→414.
Quick quiz