Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Using Countif with autofillter

I am trying to use auto filter with the "countif" function?


This Formula gives me a percent for the hole document:

=(COUNTIF(AK3:AK5000,9)+COUNTIF(AK3:AK5000,10))/COUNT(AK3:AK5000)

I want to be able to auto filter the data and have the percent from the
above function change to reflect only the visible info. Basically trying to
count only the number 9 and the number 10 for the visible info divided by the
total number of results within the same column.

ANYHELP????
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Using Countif with autofillter

Here you go


=SUMPRODUCT(($AK$3:$AK$5000={9,10})*(SUBTOTAL(3,OF FSET($AK$3,ROW($AK$3:$AK$5000)-MIN(ROW($AK$3:$AK$5000)),,))))/SUBTOTAL(2,$A$3:$AK$5000)



--


Regards,


Peo Sjoblom



"John" wrote in message
...
I am trying to use auto filter with the "countif" function?


This Formula gives me a percent for the hole document:

=(COUNTIF(AK3:AK5000,9)+COUNTIF(AK3:AK5000,10))/COUNT(AK3:AK5000)

I want to be able to auto filter the data and have the percent from the
above function change to reflect only the visible info. Basically trying
to
count only the number 9 and the number 10 for the visible info divided by
the
total number of results within the same column.

ANYHELP????



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Using Countif with autofillter

Using this formula worked with the exception that the end result for example
was 8% yet the answer should have been 80% how to fix that?

"Peo Sjoblom" wrote:

Here you go


=SUMPRODUCT(($AK$3:$AK$5000={9,10})*(SUBTOTAL(3,OF FSET($AK$3,ROW($AK$3:$AK$5000)-MIN(ROW($AK$3:$AK$5000)),,))))/SUBTOTAL(2,$A$3:$AK$5000)



--


Regards,


Peo Sjoblom



"John" wrote in message
...
I am trying to use auto filter with the "countif" function?


This Formula gives me a percent for the hole document:

=(COUNTIF(AK3:AK5000,9)+COUNTIF(AK3:AK5000,10))/COUNT(AK3:AK5000)

I want to be able to auto filter the data and have the percent from the
above function change to reflect only the visible info. Basically trying
to
count only the number 9 and the number 10 for the visible info divided by
the
total number of results within the same column.

ANYHELP????




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Using Countif with autofillter

I had a typo in the count formula ( I used A3 instead of AK3)
apologies

try


=SUMPRODUCT(($AK$3:$AK$5000={9,10})*(SUBTOTAL(3,OF FSET($AK$3,ROW($AK$3:$AK$5000)-MIN(ROW($AK$3:$AK$5000)),,))))/SUBTOTAL(2,$AK$3:$AK$5000)




--


Regards,


Peo Sjoblom







"John" wrote in message
...
Using this formula worked with the exception that the end result for
example
was 8% yet the answer should have been 80% how to fix that?

"Peo Sjoblom" wrote:

Here you go


=SUMPRODUCT(($AK$3:$AK$5000={9,10})*(SUBTOTAL(3,OF FSET($AK$3,ROW($AK$3:$AK$5000)-MIN(ROW($AK$3:$AK$5000)),,))))/SUBTOTAL(2,$A$3:$AK$5000)



--


Regards,


Peo Sjoblom



"John" wrote in message
...
I am trying to use auto filter with the "countif" function?


This Formula gives me a percent for the hole document:

=(COUNTIF(AK3:AK5000,9)+COUNTIF(AK3:AK5000,10))/COUNT(AK3:AK5000)

I want to be able to auto filter the data and have the percent from the
above function change to reflect only the visible info. Basically
trying
to
count only the number 9 and the number 10 for the visible info divided
by
the
total number of results within the same column.

ANYHELP????






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Using Countif with autofillter

NICE

Thanks a bunch. I was lost.

"Peo Sjoblom" wrote:

I had a typo in the count formula ( I used A3 instead of AK3)
apologies

try


=SUMPRODUCT(($AK$3:$AK$5000={9,10})*(SUBTOTAL(3,OF FSET($AK$3,ROW($AK$3:$AK$5000)-MIN(ROW($AK$3:$AK$5000)),,))))/SUBTOTAL(2,$AK$3:$AK$5000)




--


Regards,


Peo Sjoblom







"John" wrote in message
...
Using this formula worked with the exception that the end result for
example
was 8% yet the answer should have been 80% how to fix that?

"Peo Sjoblom" wrote:

Here you go


=SUMPRODUCT(($AK$3:$AK$5000={9,10})*(SUBTOTAL(3,OF FSET($AK$3,ROW($AK$3:$AK$5000)-MIN(ROW($AK$3:$AK$5000)),,))))/SUBTOTAL(2,$A$3:$AK$5000)



--


Regards,


Peo Sjoblom



"John" wrote in message
...
I am trying to use auto filter with the "countif" function?


This Formula gives me a percent for the hole document:

=(COUNTIF(AK3:AK5000,9)+COUNTIF(AK3:AK5000,10))/COUNT(AK3:AK5000)

I want to be able to auto filter the data and have the percent from the
above function change to reflect only the visible info. Basically
trying
to
count only the number 9 and the number 10 for the visible info divided
by
the
total number of results within the same column.

ANYHELP????






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
Using Countif with autofillter John Excel Worksheet Functions 1 October 2nd 08 02:10 AM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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