Ravindra BagaleCourses & study guides Track your progress
Medium challenge

Medium: COUNTIFS missing OR city

Need Road in Nashik OR Pune. Broken formula only counts Nashik → 2. Fixed sums two COUNTIFS → 3 (LibreOffice verified).

About this data: Made-up shipments for Rohan Deshmukh (Nashik) and Aisha Khan (Dubai). Practice only.

Why → What → How

Why: COUNTIFS is AND across criteria. OR across cities needs adding separate COUNTIFS (or SUMPRODUCT).

What: Eight shipments. Broken 2, fixed 3 (adds Pune Road S3).

How:

  1. Open Shipments.
  2. List Road rows in Nashik and Pune.
  3. Add COUNTIFS for Pune.
  4. Confirm 3.

Ravindra Bagale’s Tip

Remember: one COUNTIFS = AND. OR = add counts (or use + inside SUMPRODUCT).

Bugs explained (with mini examples)

Bug 1 — Single-city COUNTIFS

Missed Pune Road.

Bug 2 — Assuming COUNTIFS does OR

It does not.

Practice tasks (12)

  1. Task 1. Broken count?
    Hint: 2.
  2. Task 2. Fixed count?
    Hint: 3.
  3. Task 3. Which row was missed?
    Hint: S3 Pune Road.
  4. Task 4. Write OR formula.
    Hint: COUNTIFS+COUNTIFS
  5. Task 5. Interview line.
    Hint: “OR needed two COUNTIFS.”
  6. Task 6. Count Air Dubai.
    Hint: 1.
  7. Task 7. Would FILTER work in Excel 365?
    Hint: Yes — still teach COUNTIFS.
  8. Task 8. SUMPRODUCT alternative.
    Hint: Optional.
  9. Task 9. Add Mumbai Road to OR.
    Hint: Third COUNTIFS.
  10. Task 10. Why not COUNTIF only on Mode?
    Hint: Ignores city.
  11. Task 11. Bonus: pivot City×Mode.
    Hint: Cross-check.
  12. Task 12. Note the OR rule.
    Hint: A16.

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. Add Pune COUNTIFS.
  2. Total 3. LO: 2 → 3.

Quick quiz

Q1. COUNTIFS criteria pairs are combined with:
Q2. Fixed LO count:
Q3. Broken LO count:
Q4. OR across cities usually needs:
Q5. Pune Road row id in file: