Go Back

How to Count Total Cells in a Range

We can count the total number of cells, rows, and column in a range by using the COLUMNS function and the ROWS function. The steps below will walk through the process.

Figure 1: Total number of Cells in the Range

Formula to Count Total Cells in a Range

=ROWS(range)*COLUMNS(range)

Setting up the Data to Count Total Cells in a Range

We will set up the data by imputing the values as shown in figure 2 into the various cells

  • Cell A4 to Cell A12 will contain the Month
  • Cell B4 to Cell B12 will contain the Ad cost for each month
  • Cell C4, Cell C5, and Cell C6 will contain Columns, Rows, and Cells respectively

Figure 2: Setting up the Data

Counting the Total Columns in the Range (A4:B12)

We will input the formula below into Cell D4 to count the total number of columns in the range and press the enter key

=COLUMNS(A4:B12)

Figure 3: Result for the Total number of Columns in the Range

Counting the Total Rows in the Range (A4:B12)

We will input the formula below into Cell D5 to count the total number of rows in the range and press the enter key

Figure 4: Result for the Total number of Rows in the Range

Counting the Total Cells in the Range (A4:B12)

We can find the total number of cells by multiplying the cell references of the number of columns and number of rows that we have determined. We will input the formula below into Cell D6 to count the total number of cells in the range and press the enter key

=D4*D5

Figure 5A: Result for the Total number of Cells in the Range

Alternatively, we can use the formula that combines the row and column functions. With this formula, there is no need of calculating the number of rows and columns independently. We will input the formula below into Cell D6 and press the enter key

=ROWS(A4:B12)*COLUMNS(A4:B12)

Figure 5B: Result for the Total number of Cells in the Range

Explanation

 

  • ROWS Function

 

This function retrieves the total number of rows that are present in the range.

 

  • COLUMNS Function

 

This function retrieves the total number of columns that are present in the range.

Once the value of both functions have been returned, the multiplication sign multiplies both values and returns the result as the total cells in the range.

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I am trying to return the average of cells content based on a dynamic range. The issue, I think, is that it is dividing the total by the total number of cells rather than number of cells in the dynamic range
Solved by C. U. in 12 mins
I need a formula to sum a range of cells in Column "E" based on text in Column "B" "Total" . The range of cells to copy is in Column "D" B22= "Total" D22= SUM(D18:D21) to copy E22=SUM(E18:E21) to add It is important to note that the range of cells in column "D" and "E" vary in each grouping.
Solved by A. J. in 13 mins
7 cells each contain a number.A1 to A7. I then need 3 other cells to perform specific calculations based on the values in the first 7 cells.So cells A8, A9 and A10 A8 needs to show the total of the range A1:A7 A9 needs to show the total of the range A1:A7 up to the value of 8. If the total is above 8 then the cell needs to return 8. if the total is below 8 then it needs to return whatever this value is. A10 needs show how much the total of the range A1:A7 is if the total is greater than 8. So if the total of the range is 10 then cell A10 needs to return 2
Solved by C. W. in 21 mins

Leave a Comment

avatar