How to use COUNT function in Microsoft Excel

In this article, we’ll learn how to use COUNT function in Microsoft Excel.

In Excel COUNT Function returns the number of cells that contain numerical values, including numbers and dates from a set of data. We can either supply values directly to the function or as a cell reference to the location in the worksheet.

Let’s take examples and understand:

We have data in which we have taken 5 examples:

image 1

 

1st Example:

In the 1st example, we will enter function in cell A14 by selecting the range A8:A12. Then we’ll see how COUNT Function performs.

image 2

 

Follow given below steps:

  • Enter the function in cell A14
  • =COUNT(A8:A12)
  • Press Enter
  • The function returns 5, because range A8:A12 contains numerical values

image 3

 

2ndExample:

In this example, range contains text cell and blank cell.

image 4

 

Follow the steps given below:

  • Enter the function in cell B14
  • =COUNT(B8:B12)
  • Press Enter
  • The function returns 3, whereas COUNT function does not include blank cells, text or cells which cannot be translated into numbers

image 5

 

3rdExample:

In this example, we’ll see how COUNT function will work when the range has date.

image 6

 

Follow the steps given below:

  • Enter the function in cell C14
  • =COUNT(C8:C12)
  • Press Enter
  • The function will return 4 even when we have date in the range. That’s because Excel reads date as number

image 7

 

4th Example:

In this example, we have range which contains blank cell, text and a number which is stored as text.

image 8

 

Follow the steps given below:

  • Enter the function in cell D14
  • =COUNT(D8:D12)
  • Press Enter
  • The function returns 2 because COUNTA function ignores other text and prefers numbers

image 9

 

5th Example:

In this example, we have taken #N/A error value within range for which we want to enter the formula.

image 10

 

Follow the steps given below:

  • Enter the function in cell E14
  • =COUNT(E8:E12)
  • Press Enter
  • The function returns 4 --it is strange, but it is because function does not count the cell which has error value in it

image 11

 

In this way we can use COUNT function in Microsoft Excel.

 

image 48

 

Video: How to use COUNT function in Microsoft Excel

 
Watch the steps in this short video, and the written instructions are above the video
 

 

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com

 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.