Medium: Wildcard COUNTIF over-matching
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
COUNTIF(…,"AB-10*") returns 4 (includes AB-100, AB-10A). Exact "AB-10" returns 2 (LibreOffice verified).
AB-10* → 4 (over-match). Exact AB-10 → 2.
AB-10* → 4 (over-match)। Exact AB-10 → 2।
About this data: Made-up SKUs for Ankit Verma (Kanpur) and Julia Costa (Lisbon). Practice only.
Why → What → How
Why: Wildcards are powerful and over-broad. Inventory counts inflate quietly.
What: Six SKUs. Broken 4 → fixed 2.
How:
- Open SKUs.
- List what AB-10* matches.
- Change criteria to exact AB-10.
- Confirm 2.
Ravindra Bagale’s Tip
Use wildcards only when you mean a family of codes — and write a second exact check.
Ravindra Bagale’s Tip – मराठी
Wildcard म्हणजे family — exact check वेगळा ठेवा.
Ravindra Bagale’s Tip – हिंदी
Wildcard मतलब family — exact check अलग रखो।
Bugs explained (with mini examples)
Bug 1 — Trailing *
AB-10* ⊃ AB-100, AB-10A.
Bug 2 — No spot-check of matched rows
Always list matches.
Practice tasks (12)
- Task 1. Broken count?Hint: 4.
- Task 2. Fixed?Hint: 2.
- Task 3. Which extras matched?Hint: AB-100, AB-10A.
- Task 4. Exact formula.Hint: COUNTIF … "AB-10"
- Task 5. Interview sentence.Hint: “Wildcard over-counted SKUs.”
- Task 6. Count AB-10A exact.Hint: 1.
- Task 7. When is * useful?Hint: Prefix families.
- Task 8. Escape literal * in criteria?Hint: Advanced.
- Task 9. Pivot by SKU.Hint: Cross-check.
- Task 10. Bonus: COUNTIFS with product.Hint: Optional.
- Task 11. Document exact policy.Hint: A14.
- Task 12. Save clean file.Hint: Yes.
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)
- Drop the wildcard.
- Count 2. LO: 4 → 2.
Quick quiz
Q1. AB-10* also matches:
Q2. Fixed exact count:
Q3. Broken LO count:
Q4. * in COUNTIF means:
Q5. Exact criteria for AB-10: