Home » » COUNT, COUNTA, COUNTIFS in Excel

COUNT, COUNTA, COUNTIFS in Excel

 COUNT, COUNTA, COUNTIFS in Excel

Excel is a powerful spreadsheet application that allows you to perform various calculations, analysis, and data manipulation tasks. One of the common tasks that you may encounter in Excel is counting the number of cells that meet certain criteria. For example, you may want to count how many products have been sold, how many students have passed an exam, or how many employees have a certain skill.

To help you with this task, Excel provides several functions that can count cells based on different conditions. In this article, we will explain the difference between three of these functions: COUNT, COUNTA, and COUNTIFS. We will also show you some examples of how to use them in your worksheets.

COUNT function

The COUNT function counts the number of cells in a range that contain numbers. It does not count cells that are empty, contain text, logical values (TRUE or FALSE), or errors. The syntax of the COUNT function is:

=COUNT(value1, [value2], ...)

The arguments value1, value2, etc. can be cell references, ranges, arrays, or constants. You can specify up to 255 arguments for the COUNT function.

For example, suppose you have the following data in cells A1:A10:

Data
10
20
apples
30
TRUE
40
#N/A
50
oranges
60

To count how many cells in this range contain numbers, you can use the formula:

=COUNT(A1:A10)

The result is 6, because only the cells A1, A2, A4, A6, A8, and A10 contain numbers.

COUNTA function

The COUNTA function counts the number of cells in a range that are not empty. It counts cells that contain any type of value, including numbers, text, logical values, errors, and empty strings (""). The syntax of the COUNTA function is:

=COUNTA(value1, [value2], ...)

The arguments value1, value2, etc. can be cell references, ranges, arrays, or constants. You can specify up to 255 arguments for the COUNTA function.

For example, using the same data as above, to count how many cells in the range A1:A10 are not empty, you can use the formula:

=COUNTA(A1:A10)

The result is 9, because only the cell A9 is empty. Note that the cell A5 contains a logical value (TRUE), the cell A7 contains an error (#N/A), and the cell A10 contains an empty string (""), but they are all counted by the COUNTA function.

COUNTIFS function

The COUNTIFS function counts the number of cells in a range that meet multiple criteria. You can specify up to 127 pairs of criteria ranges and criteria values for the COUNTIFS function. The syntax of the COUNTIFS function is:

=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)

The arguments criteria_range1, criteria_range2, etc. are the ranges of cells that you want to apply the criteria to. The arguments criteria1, criteria2, etc. are the criteria that define which cells will be counted. The criteria can be numbers, expressions, cell references, or text values.

For example, suppose you have the following data in cells A1:B10:

ProductSales
apples100
oranges200
bananas150
grapes50
pears120
cherries80
mangoes90
kiwis70
pineapples110
strawberries60

To count how many products have sales greater than 100, you can use the formula:

=COUNTIFS(B1:B10," >100 ")

The result is 4, because only apples, oranges, bananas, and pineapples have sales greater than 100.

To count how many products have sales between 50 and 100 (inclusive), you can use the formula:

=COUNTIFS(B1:B10," >=50 ",B1:B10," <=100 ")

The result is 5, because grapes, cherries, mangoes, kiwis, and strawberries have sales between 50 and 100.

To count how many products start with the letter “p”, you can use the formula:

=COUNTIFS(A1:A10," p* ")

The result is 3, because pears, pineapples, and strawberries start with the letter “p”. Note that the asterisk (*) is a wildcard character that matches any sequence of characters.

Summary

In summary,

  • The COUNT function counts the number of cells in a range that contain numbers.
  • The COUNTA function counts the number of cells in a range that are not empty.
  • The COUNTIFS function counts the number of cells in a range that meet multiple criteria.

You can use these functions to perform various counting tasks in Excel, depending on the type and condition of the data you have. For more information and examples, you can refer to the following sources:

0 মন্তব্য(গুলি):

একটি মন্তব্য পোস্ট করুন

Comment below if you have any questions

অফিস/বেসিক কম্পিউটার কোর্স

এম.এস. ওয়ার্ড
এম.এস. এক্সেল
এম.এস. পাওয়ার পয়েন্ট
বাংলা টাইপিং, ইংরেজি টাইপিং
ই-মেইল ও ইন্টারনেট

মেয়াদ: ২ মাস (সপ্তাহে ৪দিন)
রবি+সোম+মঙ্গল+বুধবার

কোর্স ফি: ৪,০০০/-

গ্রাফিক ডিজাইন কোর্স

এডোব ফটোশপ
এডোব ইলাস্ট্রেটর

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৮,৫০০/-

ওয়েব ডিজাইন কোর্স

এইচটিএমএল ৫
সিএসএস ৩

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৮,৫০০/-

ভিডিও এডিটিং কোর্স

এডোব প্রিমিয়ার প্রো

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৯,৫০০/-

ডিজিটাল মার্কেটিং কোর্স

ফেসবুক, ইউটিউব, ইনস্টাগ্রাম, এসইও, গুগল এডস, ইমেইল মার্কেটিং

মেয়াদ: ৩ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ১২,৫০০/-

অ্যাডভান্সড এক্সেল

ভি-লুকআপ, এইচ-লুকআপ, অ্যাডভান্সড ফাংশনসহ অনেক কিছু...

মেয়াদ: ২ মাস (সপ্তাহে ২দিন)
শুক্র+শনিবার

কোর্স ফি: ৬,৫০০/-

ক্লাস টাইম

সকাল থেকে দুপুর

১ম ব্যাচ: সকাল ০৮:০০-০৯:৩০

২য় ব্যাচ: সকাল ০৯:৩০-১১:০০

৩য় ব্যাচ: সকাল ১১:০০-১২:৩০

৪র্থ ব্যাচ: দুপুর ১২:৩০-০২:০০

বিকাল থেকে রাত

৫ম ব্যাচ: বিকাল ০৪:০০-০৫:৩০

৬ষ্ঠ ব্যাচ: বিকাল ০৫:৩০-০৭:০০

৭ম ব্যাচ: সন্ধ্যা ০৭:০০-০৮:৩০

৮ম ব্যাচ: রাত ০৮:৩০-১০:০০

যোগাযোগ:

আলআমিন কম্পিউটার প্রশিক্ষণ কেন্দ্র

৭৯৬, পশ্চিম কাজীপাড়া বাসস্ট্যান্ড,

[মেট্রোরেলের ২৮৮ নং পিলারের পশ্চিম পাশে]

কাজীপাড়া, মিরপুর, ঢাকা-১২১৬

মোবাইল: 01785 474 006

ইমেইল: alamincomputer1216@gmail.com

ফেসবুক: facebook.com/ac01785474006

ব্লগ: alamincomputertc.blogspot.com

Contact form

নাম

ইমেল *

বার্তা *