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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,214,891
Messages
6,122,101
Members
449,066
Latest member
Andyg666

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