Excel में COUNTIF और COUNTIFS कैसे इस्तेमाल करें
Read this guide in: English · मराठी · हिंदी
COUNTIF एक condition मिलने वाली rows गिनता है। COUNTIFS कई conditions मिलने वाली rows गिनता है।
दोस्तों, कुल रुपये नहीं — “कितने orders?” चाहिए। COUNTIF गिनता है। Staffing और stock सवालों को row counts चाहिए। SUMIF जैसी ही shop sheet।
संक्षिप्त उत्तर
Vertical steps:
- City / Channel columns इस्तेमाल करो।
=COUNTIF(CityRange,"Mumbai")→ Mumbai rows कितनी।=COUNTIFS(CityRange,"Mumbai",ChannelRange,"Online")→ दोनों rules।- AutoFilter count से तुलना।
- Amount पर
">=100"— high-value lines। - हर criteria range same height रखो।
=COUNTIF(A2:A4,"Mumbai")
=COUNTIFS(A2:A4,"Mumbai",B2:B4,"Online")
Language: English · मराठी · हिंदी
Before और after
Before — तीन orders
| City | Channel | Amount |
|---|---|---|
| Mumbai | Online | 100 |
| Mumbai | Store | 50 |
| Pune | Online | 40 |
After — COUNTIF Mumbai → 2 (150 रुपये नहीं — दो rows)
| Metric | Result |
|---|---|
| COUNTIF Mumbai | 2 |
| COUNTIFS Mumbai+Online | 1 |
Before
आधी (Before)
पहले (Before)
After
नंतर (After)
बाद में (After)
COUNTIF / COUNTIFS क्यों?
- SUMIF जवाब: “कितने पैसे”।
- COUNTIF जवाब: “कितनी lines / orders / customers”।
- Interviews में दोनों साथ आते हैं।
क्या होता है
- COUNTIF Mumbai → rows 1 और 2 → 2।
- COUNTIFS Mumbai + Online → सिर्फ़ row 1 → 1।
- COUNTIF Amount
">=100"→ सिर्फ़ 100 → 1।
Vertical practice steps
- तीन-row table फिर बनाओ।
- COUNTIF City Mumbai → 2।
- COUNTIF City Pune → 1।
- COUNTIFS Mumbai Online → 1।
- AutoFilter City = Mumbai; 2 visible rows confirm।
- चौथी Mumbai Online row; recount → 3 और 2।
COUNTIF vs SUMIF
| Need | Function |
|---|---|
| Matching rows कितनी | COUNTIF / COUNTIFS |
| Matching Amount total | SUMIF / SUMIFS |
Ravindra Bagale's Tip
छात्र COUNTIF देखकर रुपये उम्मीद करते हैं। Count = rows। Sum = money। Week one sticky note। Simple — powerful।
Practice task
- दस rows shop sales (mix cities)।
- हर city COUNTIF।
- City + channel COUNTIFS।
- Amount पर एक COUNTIF
">=100"।
Learn it properly
Related guides: SUMIF/SUMIFS · FILTER · IF
Samajla ka? COUNTIF एक rule से rows गिनता है; COUNTIFS कई से। Money sum नहीं। आगे INDEX+MATCH।
Frequently asked questions
COUNTIF vs COUNTIFS?
COUNTIF = one condition. COUNTIFS = several conditions (AND logic).
Does COUNTIF sum money?
No. It counts rows. Use SUMIF when you need rupee totals.
Count blanks?
COUNTBLANK for empty cells, or COUNTIF(range,"") in some cases.
Wildcards?
Yes. COUNTIF(A:A,"Mum*") can count cities starting with Mum — use carefully.
Zero when you expect a number?
Check spelling, trailing spaces, and that ranges align.
Course lesson?
Chapter 3 — COUNT family including COUNTIF and COUNTIFS.