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.
Leave a Comment