Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
tg tg is offline
external usenet poster
 
Posts: 58
Default COUNTIF Function on filtered data

I want to be able to filter data (using criteria in Col A) and then count
numbers (in another column) that are greater than or less than a certain
number. I only want to count the numbers from the filtered area, not from
the whole range of data. I want this to be dynamic, so that when I change
filters in Col A it still only counts numbers from the filtered data.

The COUNTIF function counts numbers from the whole range and the SUBTOTAL
function doesn't have a reference number for the COUNTIF function.

Is there a way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default COUNTIF Function on filtered data

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A1,ROW($A$2:$A$19)-ROW($A$1),,1)),--($C$2:$C$1920)),--($C$2:$C$19<=50))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"TG" wrote in message
...
I want to be able to filter data (using criteria in Col A) and then count
numbers (in another column) that are greater than or less than a certain
number. I only want to count the numbers from the filtered area, not from
the whole range of data. I want this to be dynamic, so that when I change
filters in Col A it still only counts numbers from the filtered data.

The COUNTIF function counts numbers from the whole range and the SUBTOTAL
function doesn't have a reference number for the COUNTIF function.

Is there a way to do this?



  #3   Report Post  
Posted to microsoft.public.excel.misc
tg tg is offline
external usenet poster
 
Posts: 58
Default COUNTIF Function on filtered data

thank you so much Bob - I've been working on this for hours, that's so
amazingly helpful!!!

"Bob Phillips" wrote:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A1,ROW($A$2:$A$19)-ROW($A$1),,1)),--($C$2:$C$1920)),--($C$2:$C$19<=50))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"TG" wrote in message
...
I want to be able to filter data (using criteria in Col A) and then count
numbers (in another column) that are greater than or less than a certain
number. I only want to count the numbers from the filtered area, not from
the whole range of data. I want this to be dynamic, so that when I change
filters in Col A it still only counts numbers from the filtered data.

The COUNTIF function counts numbers from the whole range and the SUBTOTAL
function doesn't have a reference number for the COUNTIF function.

Is there a way to do this?




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
countif only visible cells (filtered) [email protected] Excel Worksheet Functions 8 August 16th 07 04:39 PM
Using Data Fill function to copy a Countif formula Rachael F Excel Worksheet Functions 0 March 8th 07 08:15 PM
Using Data Fill function to copy a Countif formula Duke Carey Excel Worksheet Functions 0 March 8th 07 06:38 PM
Subtotal function with Filtered Data RonB Excel Discussion (Misc queries) 3 August 12th 05 10:04 PM
analysing data from alternate columns using the countif function Juniper Excel Discussion (Misc queries) 3 April 28th 05 04:12 PM


All times are GMT +1. The time now is 06:28 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"