Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Count Advanced Filtered Rows

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Count Advanced Filtered Rows

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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Count Advanced Filtered Rows

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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count Advanced Filtered Rows

=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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I count rows in a filtered list when using AutoFilter? chiefcook Excel Worksheet Functions 6 November 10th 08 09:21 AM
count filtered rows based on condition greater than forty PLVKC Excel Worksheet Functions 1 September 4th 07 07:56 AM
Display count of filtered rows Eric Excel Discussion (Misc queries) 2 January 14th 07 09:33 PM
How do I count the number of filtered rows 2D Rick Excel Worksheet Functions 2 January 7th 07 03:36 AM
Unique Count sensitive to hidden/filtered rows Ian Excel Worksheet Functions 7 May 12th 05 08:58 PM


All times are GMT +1. The time now is 08:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"