Ravindra BagaleCourses & study guides Track your progress

Excel COUNTIFS Function

Chala mitrano — today COUNTIFS. Many filters, one tally — Open AND Priority High.

Fictional sample data for learning. Multi-filter headcounts for Kochi plants and Boston helpdesks.

Purpose

Count cells that meet several conditions.

Return value

How many rows match every criteria pair.

Syntax

COUNTIFS(criteria_range1, criteria1, …)

Arguments

ArgumentRequired?Description
criteria_range1RequiredFirst test range.
criteria1RequiredFirst condition.
criteria_range2, criteria2,…OptionalMore pairs.

Version

Excel 2019 / Microsoft 365. LibreOffice has close equivalents; Sheets too.

How to use — Why → What → How

Why: Real queues filter on status and priority together. COUNTIFS does that without helper columns. Multi-filter headcounts for Kochi plants and Boston helpdesks. In Indian back offices and foreign sister teams, COUNTIFS shows up on scoreboards, QC sheets and queue dashboards every week.

What: COUNTIFS counts rows where every criteria pair is true. All ranges must be the same shape. Read every argument in the table once before you type; each one changes the answer on purpose.

How — numbered steps:

  1. List each range+criteria pair.
  2. Keep ranges same height.
  3. Start from COUNTIF when you only need one filter.

Ravindra Bagale's Tip

Friends, after COUNTIFS, find one column or range in a real workbook this week where this lesson saves time.

Ravindra Bagale's Tip

Friends, sleep on COUNTIFS; rebuild example 1 tomorrow without looking.

Ravindra Bagale's Tip

Friends, say the business question in plain words before =COUNTIFS.

Ravindra Bagale's Tip

Friends, check a known case with a calculator before you trust a long COUNTIFS chain.

Ravindra Bagale's Tip

Friends, after you finish COUNTIFS, open yesterday’s real workbook and find one place this function would have saved ten minutes.

Ravindra Bagale's Tip

Friends, treat COUNTIFS like a seatbelt on status or city columns — check a known case first.

Download practice file: practice-countifs.xlsx (includes sheet About this data, practice sheets, and Answers).

Worked examples

1) City+status

Kochi.

CityStatus
KochiOpen
KochiClosed
BostonOpen
Formula: =COUNTIFS(A2:A4,"Kochi",B2:B4,"Open")

Result: 1

What it means: One Kochi Open.

2) Priority

Boston.

StatusPri
OpenHigh
OpenLow
ClosedHigh
Formula: =COUNTIFS(A2:A4,"Open",B2:B4,"High")

Result: 1

What it means: One Open High.

3) Numeric AND

Marks.

BatchMarks
A70
A90
B80
Formula: =COUNTIFS(A2:A4,"A",B2:B4,">75")

Result: 1

What it means: One row.

4) Two cities

Export.

CityType
KochiExport
KochiLocal
BostonExport
Formula: =COUNTIFS(A2:A4,"Kochi",B2:B4,"Export")

Result: 1

What it means: One.

5) No match

Impossible.

CityStatus
PuneOpen
Formula: =COUNTIFS(A2:A2,"Pune",B2:B2,"Closed")

Result: 0

What it means: Zero.

6) Three pairs

Tight filter.

CityStatusPri
KochiOpenHigh
KochiOpenLow
Formula: =COUNTIFS(A2:A3,"Kochi",B2:B3,"Open",C2:C3,"High")

Result: 1

What it means: All three match once.

About this data. Small demo rows for learning. Real sheets are longer; the same formula pattern scales when columns are clean.

Common errors and fixes

#VALUE! — Ranges different sizes. Fix: Match heights.
0 surprises — Spelling mismatch. Fix: Check trim/case.
AND only — OR needs other patterns. Fix: Sum of COUNTIFs or FILTER.

Notes and tips

  • Revisit the COUNTIFS errors table after the quiz.
  • Build example 1 from memory on a blank sheet.
  • Check number vs text if a result looks wrong.
  • Teach one tip in Marathi or Hindi this week.
  • Keep currency symbols consistent inside one report column (practice mixes ₹ $ £ €).
  • Drill: two-filter ticket count from memory on a blank sheet.
  • COUNTIFS vs SUMIFS: same pairs; count versus total.
  • Fictional sample data only — names and amounts are for learning.
  • Print the COUNTIFS revision card for one week of real worksheets.
  • Ask juniors to predict before they press Enter.
  • Track your top mistake with this function monthly.
  • Multi-filter headcounts for Kochi plants and Boston helpdesks.
  • Interview tip: explain the business question before the formula.
  • Classroom drill: invent three brand-new formulas from your city without the page open.
  • If a result looks wrong, check blanks vs zeros before rewriting.
  • When Excel versions differ, note the LibreOffice / Sheets fallback in a cell comment.
  • Prefer clear ranges over whole-column refs on huge sheets if speed matters.
  • Document units (₹, kg, days) in the header so totals stay honest.
  • Print the revision card for COUNTIFS for one week of real worksheets.
  • When helping a junior, ask them to predict before Enter.
  • Share one tip with a classmate in Marathi or Hindi.
  • Keep currency symbols consistent inside a single report column.
  • Interview tip: explain the business question before the formula.
  • If a result looks wrong, check blanks vs zeros before rewriting maths.
  • When Excel versions differ, write a LibreOffice fallback under a comment.

In real work

Drill: two-filter ticket count from memory on a blank sheet. Multi-filter headcounts for Kochi plants and Boston helpdesks. Classroom drill: write three brand-new COUNTIFS formulas on a blank sheet using names from your own city — if you can invent them without the page open, you own the skill. Then break one formula on purpose and watch the error; recovering from that break is half of interview readiness. Always verify with a known case before trusting a long chain. Keep a personal notebook of the one mistake you make most often with this function; review it monthly.

How it compares

COUNTIFS vs SUMIFS: same pairs; count versus total.

Interview corner

AND or OR?
AND across pairs.
No match?
0.
vs COUNTIF?
Many vs one.

COUNTIF, SUMIFS, AVERAGEIFS

Practice tasks (10)

  1. Task 1. Count rows where City is Kochi and Status is Open.
    =COUNTIFS(CityRange,"Kochi",StatusRange,"Open").
  2. Task 2. Count Open tickets that are also High priority.
    Two criteria pairs: Status and Priority.
  3. Task 3. Count Batch A rows with Score greater than 75.
    Text criteria on Batch; numeric ">75" on Score.
  4. Task 4. Add a third filter (e.g. Region West) on top of City + Status.
    COUNTIFS takes criteria in pairs — keep ranges the same height.
  5. Task 5. Confirm no matching City+Status pair returns 0.
    Zero is success, not an error.
  6. Task 6. Interview: how is COUNTIFS different from nesting IF?
    Talk: AND across columns without writing IF.
  7. Task 7. Teach: say the business question before the formula (two filters).
    Example: "How many Kochi orders are still open?"
  8. Task 8. Count blanks in Status among City = Pune only.
    Pair City="Pune" with Status="".
  9. Task 9. Build a small two-filter tally table and fill formulas sideways.
    Lock data ranges with $; leave criteria cells relative.
  10. Task 10. Document units/filters in a note above the result cell.
    Plain English beats a naked number in a report.

Quick quiz

Q1. COUNTIFS joins criteria with?
Q2. No match?
Q3. One condition enough?
Q4. Mismatched sizes?
Q5. Kochi Open sample1?

Answers: Q1=AND, Q2=0, Q3=COUNTIF fine, Q4=#VALUE!, Q5=1 (check after you try).

Revision card

Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.

Revision card: COUNTIFS
COUNTIFS revision card