Ravindra BagaleCourses & study guides Track your progress
Medium challenge

Medium: SUMIF spaces and case

SUMIF for "Paid" misses “paid”, “ Paid”, and “PAID”. Clean statuses. Broken total 14000 → fixed 18100 (LibreOffice verified).

About this data: Made-up claims for Neha Joshi (Indore) and Tom Müller (Berlin). INR. Practice only.

Why → What → How

Why: Exports mix case and pad status text. SUMIF exact match then under-counts.

What: Six claims; five should be Paid after clean. LO: 14000 → 18100.

How:

  1. Open Claims.
  2. Scan Status for spaces/case.
  3. TRIM + proper case to Paid/Open.
  4. Re-run SUMIF → 18100.

Ravindra Bagale’s Tip

Helper =TRIM(UPPER(C5)) then SUMIF on a canonical code, or clean once with Find/Replace.

Bugs explained (with mini examples)

Bug 1 — Exact status mismatch

"Paid"≠"paid"≠" Paid".

Bug 2 — Trusting the SUMIF total

Under-count looks “almost right”.

Practice tasks (12)

  1. Task 1. Broken SUMIF result?
    Hint: 14000.
  2. Task 2. Fixed target?
    Hint: 18100.
  3. Task 3. Find the leading-space status.
    Hint: C-03.
  4. Task 4. Normalize PAID/paid.
    Hint: Paid.
  5. Task 5. Re-SUMIF.
    Hint: 18100.
  6. Task 6. Interview sentence.
    Hint: “Status text inconsistent.”
  7. Task 7. Does SUMIF ignore case in Excel?
    Hint: Often case-insensitive — still fix spaces.
  8. Task 8. TRIM column.
    Hint: Helper.
  9. Task 9. Count Open after clean.
    Hint: 1.
  10. Task 10. Data validation list Paid/Open.
    Hint: Prevent drift.
  11. Task 11. Bonus: pivot by Status.
    Hint: See splits.
  12. Task 12. Document clean rule.
    Hint: A14.

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)
  1. Clean Status to Paid/Open.
  2. SUMIF → 18100. LO: 14000 → 18100.

Quick quiz

Q1. Leading space before Paid makes SUMIF:
Q2. Fixed total:
Q3. Broken LO total:
Q4. Best hygiene:
Q5. TRIM helps with: