TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.1K subscribers
Post #2230 3.25K
๐Ÿ“Š Excel Basics #14 โ€“ COUNTIF() & COUNTIFS() Functions

The "COUNTIF()" and "COUNTIFS()" functions count cells that meet one or more conditions. They are extremely useful for analyzing large datasets and creating reports.

๐Ÿ“Œ 1. COUNTIF() Function
The "COUNTIF()" function counts cells based on a single condition.

Syntax:
=COUNTIF(range, criteria)

Example:
A
Apple
Banana
Apple
Orange
Apple

Formula:
=COUNTIF(A2:A6,"Apple")

Result:
3

Excel counts how many times "Apple" appears.

๐Ÿ“Œ Example with Numbers
Sales
5000
12000
8000
15000
20000

Formula:
=COUNTIF(A2:A6,">10000")

Result:
3

This counts all sales greater than 10,000.

๐Ÿ“Œ 2. COUNTIFS() Function
The "COUNTIFS()" function counts cells based on multiple conditions.

Syntax:
=COUNTIFS(criteriaแตฃange1, criteria1, criteriaแตฃange2, criteria2,...)

Example:
Employee | Department | Sales
Rahul | IT | 60000
Priya | HR | 55000
Amit | IT | 45000
Neha | IT | 70000

Formula:
=COUNTIFS(B2:B5,"IT",C2:C5,">50000")

Result:
2

This counts employees who:
โ€ข Belong to the IT department.
โ€ข Have sales greater than 50,000.

๐Ÿ“Œ Common Criteria Examples
โ€ข "Apple" โ†’ Exact text
โ€ข ">100" โ†’ Greater than
โ€ข "<50" โ†’ Less than
โ€ข ">=1000" โ†’ Greater than or equal to
โ€ข "<>0" โ†’ Not equal to zero

๐Ÿ“Œ Real-World Uses
โ€ข Count employees in a department.
โ€ข Count products with sales above a target.
โ€ข Count overdue invoices.
โ€ข Count students who scored above a passing mark.
โ€ข Count orders from a specific region.

๐Ÿ“Œ Common Mistakes
โ€ข Selecting ranges of different sizes in "COUNTIFS()".
โ€ข Forgetting to enclose text criteria in double quotes.
โ€ข Using incorrect comparison operators.

โœ… Best Practices
โ€ข Use "COUNTIF()" for a single condition.
โ€ข Use "COUNTIFS()" when multiple conditions are required.
โ€ข Ensure all criteria ranges in "COUNTIFS()" are the same size.
โ€ข Use cell references for criteria to make formulas dynamic.

Example:
=COUNTIF(B2:B100,E1)

If E1 contains "IT", Excel counts all IT records automatically.

Double Tap โค๏ธ For More
  • โค 13
  • ๐Ÿ‘ 1
More from @excel_analyst
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 7, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 5 This part focuses on Tables, Filters & Data Analysis shortcutsโ€ฆ
  3. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  4. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  5. Sep 29, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 3 This part focuses on Formatting Shortcuts โ€” quickly format celโ€ฆ
  6. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’