Count number of rows that contain data (rows will be dynamic)

danniaus

New Member
Joined
Jun 2, 2016
Messages
20
Hello

If I have a set of data that will have an unknown number of rows, how can I calculate the number of rows with data in them if the sheet will change each time

Example below, I only wish to count the rows with actual data not the blanks and because the range will change I can use a specific range

NMI/MIRN Quote*Current RetailerDMA providerAnnual Peak KWh*Annual Shoulder KWh*Annual Off Peak KWh*
6203724417Origin EnergyPlus ES756,063228278.09
6203724417Origin EnergyPlus ES756,063228278.09
6203724417Origin EnergyPlus ES756,063228278.09
6203724417Origin EnergyPlus ES756,063228278.09
6203724417Origin EnergyPlus ES756,063228278.09

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Assuming you do not want to count the header, simply pick a column whose data is numeric (like Column A) and using the COUNT function on it...

=COUNT(A:A)
 
Upvote 0
Ah it wasn't working because column A isnt always numerical, thankyou I am now using column H and it works. Thankyou :)
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,541
Latest member
iparraguirre89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top