#1   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Filtered Counting

Hello I found an excellent formula to count unique values in a given column
and it even modifies the count when they are filtered. Here's the formula I
am using for this...

=SUM(--(FREQUENCY(IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3 000)-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""),IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3000 )-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""))0))


I want to modify this to actually count all non-blanks (even duplicates) BUT
I want to subtract all the entries of "No Data Here" and "Sold Out"

So The formula gives me 1114 Unique entries and it adjusts when filtered.
But I want all 2876 entries minus 27 "No Data Here" and minus 56 "Sold Out"
even when filtered.

Is this possible?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Filtered Counting

Not sure I follow you on this.

You want the count of all entries in the filtered or unfiltered range less
the count of "No Data Here" and "Sold Out" ?

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Hello I found an excellent formula to count unique values in a given
column
and it even modifies the count when they are filtered. Here's the formula
I
am using for this...

=SUM(--(FREQUENCY(IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3 000)-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""),IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3000 )-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""))0))


I want to modify this to actually count all non-blanks (even duplicates)
BUT
I want to subtract all the entries of "No Data Here" and "Sold Out"

So The formula gives me 1114 Unique entries and it adjusts when filtered.
But I want all 2876 entries minus 27 "No Data Here" and minus 56 "Sold
Out"
even when filtered.

Is this possible?

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Filtered Counting

Biff, Thanks for your reply... Yes, That is exactly what I am trying to do.

"T. Valko" wrote:

Not sure I follow you on this.

You want the count of all entries in the filtered or unfiltered range less
the count of "No Data Here" and "Sold Out" ?

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Hello I found an excellent formula to count unique values in a given
column
and it even modifies the count when they are filtered. Here's the formula
I
am using for this...

=SUM(--(FREQUENCY(IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3 000)-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""),IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3000 )-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""))0))


I want to modify this to actually count all non-blanks (even duplicates)
BUT
I want to subtract all the entries of "No Data Here" and "Sold Out"

So The formula gives me 1114 Unique entries and it adjusts when filtered.
But I want all 2876 entries minus 27 "No Data Here" and minus 56 "Sold
Out"
even when filtered.

Is this possible?

Thanks in advance.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Filtered Counting

Try this. This example formula is counting the filtered or unfiltered range
B3:B21. Adapt to suit.

=SUBTOTAL(3,B3:B21)-SUMPRODUCT(SUBTOTAL(3,OFFSET(B3:B21,ROW(B3:B21)-ROW(B3),0,1)),--(ISNUMBER(MATCH(B3:B21,{"sold
out","no data here"},0))))

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Biff, Thanks for your reply... Yes, That is exactly what I am trying to
do.

"T. Valko" wrote:

Not sure I follow you on this.

You want the count of all entries in the filtered or unfiltered range
less
the count of "No Data Here" and "Sold Out" ?

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Hello I found an excellent formula to count unique values in a given
column
and it even modifies the count when they are filtered. Here's the
formula
I
am using for this...

=SUM(--(FREQUENCY(IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3 000)-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""),IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3000 )-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""))0))


I want to modify this to actually count all non-blanks (even
duplicates)
BUT
I want to subtract all the entries of "No Data Here" and "Sold Out"

So The formula gives me 1114 Unique entries and it adjusts when
filtered.
But I want all 2876 entries minus 27 "No Data Here" and minus 56 "Sold
Out"
even when filtered.

Is this possible?

Thanks in advance.






  #5   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Filtered Counting

Awesome!! It Worked!

Thank You Sooo Much!



"T. Valko" wrote:

Try this. This example formula is counting the filtered or unfiltered range
B3:B21. Adapt to suit.

=SUBTOTAL(3,B3:B21)-SUMPRODUCT(SUBTOTAL(3,OFFSET(B3:B21,ROW(B3:B21)-ROW(B3),0,1)),--(ISNUMBER(MATCH(B3:B21,{"sold
out","no data here"},0))))

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Biff, Thanks for your reply... Yes, That is exactly what I am trying to
do.

"T. Valko" wrote:

Not sure I follow you on this.

You want the count of all entries in the filtered or unfiltered range
less
the count of "No Data Here" and "Sold Out" ?

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Hello I found an excellent formula to count unique values in a given
column
and it even modifies the count when they are filtered. Here's the
formula
I
am using for this...

=SUM(--(FREQUENCY(IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3 000)-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""),IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3000 )-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""))0))


I want to modify this to actually count all non-blanks (even
duplicates)
BUT
I want to subtract all the entries of "No Data Here" and "Sold Out"

So The formula gives me 1114 Unique entries and it adjusts when
filtered.
But I want all 2876 entries minus 27 "No Data Here" and minus 56 "Sold
Out"
even when filtered.

Is this possible?

Thanks in advance.








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Filtered Counting

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Awesome!! It Worked!

Thank You Sooo Much!



"T. Valko" wrote:

Try this. This example formula is counting the filtered or unfiltered
range
B3:B21. Adapt to suit.

=SUBTOTAL(3,B3:B21)-SUMPRODUCT(SUBTOTAL(3,OFFSET(B3:B21,ROW(B3:B21)-ROW(B3),0,1)),--(ISNUMBER(MATCH(B3:B21,{"sold
out","no data here"},0))))

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Biff, Thanks for your reply... Yes, That is exactly what I am trying to
do.

"T. Valko" wrote:

Not sure I follow you on this.

You want the count of all entries in the filtered or unfiltered range
less
the count of "No Data Here" and "Sold Out" ?

--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
Hello I found an excellent formula to count unique values in a given
column
and it even modifies the count when they are filtered. Here's the
formula
I
am using for this...

=SUM(--(FREQUENCY(IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3 000)-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""),IF(SUBTOTAL(3,OFFSET($D$6,ROW($D$6:$D$3000 )-ROW($D$6),,1)),MATCH($D$6:$D$3000,$D$6:$D$3000,0), ""))0))


I want to modify this to actually count all non-blanks (even
duplicates)
BUT
I want to subtract all the entries of "No Data Here" and "Sold Out"

So The formula gives me 1114 Unique entries and it adjusts when
filtered.
But I want all 2876 entries minus 27 "No Data Here" and minus 56
"Sold
Out"
even when filtered.

Is this possible?

Thanks in advance.








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
Counting a filtered range Jenny Excel Discussion (Misc queries) 4 July 11th 07 01:29 AM
Help Please-Counting Filtered Rows baz Excel Worksheet Functions 2 December 16th 05 05:57 PM
Counting a Filtered List kkrebs Excel Discussion (Misc queries) 6 September 22nd 05 02:57 PM
counting filtered items mar10 Excel Worksheet Functions 3 August 25th 05 08:09 PM
Counting within a filtered range Jeff Excel Worksheet Functions 2 June 13th 05 03:33 AM


All times are GMT +1. The time now is 05:10 PM.

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"