PC Review


Reply
Thread Tools Rate Thread

Count Advanced Filtered Rows

 
 
Daren
Guest
Posts: n/a
 
      25th Feb 2009
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.
 
Reply With Quote
 
 
 
 
N harkawat
Guest
Posts: n/a
 
      25th Feb 2009
say your filtered range is A1:a100 then

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

"Daren" wrote:

> 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.

 
Reply With Quote
 
Daren
Guest
Posts: n/a
 
      25th Feb 2009
Tried your suggestion but it returned a 0. Do you know what I might have
done incorrectly, if anything?

"N harkawat" wrote:

> say your filtered range is A1:a100 then
>
> =subtotal(2,a1:a100) will count the number of records displayed
>
> "Daren" wrote:
>
> > 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.

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      25th Feb 2009
>=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.


--
Biff
Microsoft Excel MVP


"Daren" <(E-Mail Removed)> wrote in message
news:2C7F9D9C-486E-4C85-A14A-(E-Mail Removed)...
> Tried your suggestion but it returned a 0. Do you know what I might have
> done incorrectly, if anything?
>
> "N harkawat" wrote:
>
>> say your filtered range is A1:a100 then
>>
>> =subtotal(2,a1:a100) will count the number of records displayed
>>
>> "Daren" wrote:
>>
>> > 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count filtered rows Paul Microsoft Excel Programming 10 18th Nov 2009 06:21 AM
How do I count the number of filtered rows 2D Rick Microsoft Excel Worksheet Functions 2 7th Jan 2007 03:36 AM
count rows of a filtered list Tim Microsoft Excel Discussion 1 10th Feb 2006 04:30 AM
Adding (Distinct) Advanced Filtered Rows kukarooza Microsoft Excel Discussion 2 5th Oct 2004 01:42 PM
How do I count the number of filtered rows Pat Bell Microsoft Excel Worksheet Functions 3 16th Aug 2003 04:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:09 AM.