Count Advanced Filtered Rows

D

Daren

Hello,
I have an advanced filtered sheet that has criteria in two adjacent columns
for the following criteria:
*pharm*
*drug*
*rx*
*script*

The filter works, however I want to be able to count only the number of
records shown. How can I do that?

Thanks.
 
N

N harkawat

say your filtered range is A1:a100 then

=subtotal(2,a1:a100) will count the number of records displayed
 
D

Daren

Tried your suggestion but it returned a 0. Do you know what I might have
done incorrectly, if anything?
 
T

T. Valko

=subtotal(2,a1:a100) will count the number of records displayed

That will count *numbers* in the filtered range.

Replace 2 with 3.

That will count any cells that are not empty.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top