Count if with filters

lcohenvb

New Member
Joined
Oct 27, 2002
Messages
44
I have a worksheet with 19 columns and, at the top, I have a summary table with "Countif" statements. I have added filters and I want the "countif" results to change depending on how the user changes the filter on any one of the 19 columns. I know "subtotal" will change depending on visible cells but I cannot get the "Countif" results to change. Is it possible?

Thanks for any comments. I tried to search the message boards to see if this has come up before but I didn't see a related message.

Lynn
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Care to post one of the CountIf formulas you have?

Of course. I have a table that looks like this:

Bucket Weeks # of Assoc % of terms
1 0-13 =COUNTIF($R$11:$R$85270,H2 J2/$J$7
2 14-26 =COUNTIF($R$11:$R$85270,H3 J3/$J$7
3 27-39 =COUNTIF($R$11:$R$85270,H4 J4/$J$7
4 40-52 =COUNTIF($R$11:$R$85270,H5 J5/$J$7
5 > 52 =COUNTIF($R$11:$R$85270,H6 J6/$J$7
Total XXXXXX
 
Upvote 0
Opps, it came out all run together. The count if statement is simply =countif($R$11:$R$85270,H2)
 
Upvote 0
Thanks, yes I figured the countif formulat would not work like the subtotal with the filters. Is there a way around it or another function I can use?
 
Upvote 0
Of course. I have a table that looks like this:

Bucket Weeks # of Assoc % of terms
1 0-13 =COUNTIF($R$11:$R$85270,H2 J2/$J$7
2 14-26 =COUNTIF($R$11:$R$85270,H3 J3/$J$7
3 27-39 =COUNTIF($R$11:$R$85270,H4 J4/$J$7
4 40-52 =COUNTIF($R$11:$R$85270,H5 J5/$J$7
5 > 52 =COUNTIF($R$11:$R$85270,H6 J6/$J$7
Total XXXXXX

Try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET($R$11,ROW($R$11:$R$85270)-ROW($R$11),0)),--($R$11:$R$85270=H2))
 
Upvote 0
Wow, thanks, it's doing something but I am trying to figure out exactly what it is doing! I was thinking if I had no filters, it should be the same as my count if but it isn't....
 
Upvote 0
Unbelievable, it works! I can't believe how someone on this board can always help me so quickly. Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top