Filter - # of Record found

Chuck Moran

New Member
Joined
May 12, 2011
Messages
7
I'm using Excel 2010.
When using Filters the "# of records found" is shown on the Status Bar. ie: 5 of 82 records found.

Can someone help me get the # (5 in the example) be obtained to use on a "Form"?

Any help is appreciated.
Thanks!
Chuck
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
There are probably better ways of doing this, but you could try using the SUBTOTAL function, for example
Code:
=subtotal(2,a2:a82)
will count how many items in your target range are visible, and will change if you filter it.
I'm assuming you have a header line on row 1.
The 2 argument specifies COUNT, there are other options.
If you put this formula in a cell, you might be able to bring the result onto a form.

You can probably also do the whole lot through VBA but I'm not an expert on that I'm afraid.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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