autofiler and formula

erky

New Member
Joined
Sep 1, 2010
Messages
13
I have an excel sheet with lots of data and I have autofilter enabled. When I add this formula to my sheet, and I click on the autofilter arrow to filter the data and when it changes to that specific data my formula is gone. It only stays when I am not filtering the data. Is there any way that I can make my formula stay on the sheet regardless if I filter the data or not. Thanks for all your help. I hope I explained this clearly.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I have an excel sheet with lots of data and I have autofilter enabled. When I add this formula to my sheet, and I click on the autofilter arrow to filter the data and when it changes to that specific data my formula is gone. It only stays when I am not filtering the data. Is there any way that I can make my formula stay on the sheet regardless if I filter the data or not. Thanks for all your help. I hope I explained this clearly.
Put the formula at the top of the sheet above the filtered range.
 
Upvote 0
Ok, that keeps it but now it is not doing the formula.

=countif(c6:c8888,"T")

That is the forumla, but when I use the autofilter it wont count now because the row starts at C200, etc. now

Pretty much I want it to go down column C and count how many T's are showing. When I click the filter arrow and the data changes I want it to just recalculate the info just on that filtered data, not what I have in the entire worksheet. Maybe I should use a different formula? THanks for the quick reply already
 
Last edited:
Upvote 0
Ok, that keeps it but now it is not doing the formula.

=countif(c6:c8888,"T")

That is the forumla, but when I use the autofilter it wont count now because the row starts at C200, etc. now.

Thanks for the quick reply.
Try this...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(C6:C8888,ROW(C6:C8888)-ROW(C6),0,1)),--(C6:C8888="T"))
 
Upvote 0
It is like still counting all the data in the entire sheet, not just what I have filtered
 
Upvote 0
1 last question, I have it counting how many T's but how can I have it add the total number also of T's, P's, O's, and also S's. Thanks again for the help
 
Upvote 0
1 last question, I have it counting how many T's but how can I have it add the total number also of T's, P's, O's, and also S's. Thanks again for the help
Use cells to hold those criteria:
  • A1 = T
  • B1 = P
  • C1 = O
  • D1 = S
Then the formula becomes:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(C6:C8888,ROW(C6:C8888)-ROW(C6),0,1)),--(ISNUMBER(MATCH(C6:C8888,A1:D1,0))))
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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