Count filtered rows with no value

ernief

New Member
Joined
Dec 9, 2017
Messages
8
Hi
I have a spreadsheet which reduces in two hits and I display the last filtered list in a listbox. I am using the following code to count the rows from the bottom u[, but as there is formula in the cells it stops at the first cell with a formula even if the value is nil or blank.

RecordCount = wsOpenIssues.Range("AT3", wsOpenIssues.Range("AT1048576").End(xlUp)).Rows.Count

Is there another way to locate the last cell with a value in it
Thanks
ernief
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You want to know the count of filtered range?
 
Upvote 0
Yes and I want to restrict the listbox to the number of rows with values in the first column

Also I should have said I am getting blank rows in the list box after the rows with values because the first column has a formula which is returning blank data due to the filter process. So I am trying to restrict the listbox to show only those rows where the formula has provided a value.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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