Adding Subtotal to a countifs function

Cailean

New Member
Joined
Feb 12, 2016
Messages
4
Hi Could somebody give me some assistance on how i could add a subtotal to allow me to use this Countifs function when filtering data?

=COUNTIFS(Table2[0101-Interface Variation MF],">0",Table2[0101-Interface Variation MF],"<99.99")

Thanks.


Cailean.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Can you give some more information = what do you mean by sub total and how do you want it displayed / used?
 
Upvote 0
Can you give some more information = what do you mean by sub total and how do you want it displayed / used?

I want to count the number of values in a column that fall between 0 -100. If i filter by week number for example i need the value to update by the number of cells shown?

Hope this is clearer.

Cailean.
 
Upvote 0
Very hard to make it do exactly as you say without using VBA and I'm not even sure if that's possible (however the wizards around here seem to be able to make it do anything).
One option would be to be able to modify what the calculation is looking at by changing a value in a cell.
Thus you would have your Week number in Cell A1 and have weeknumber as column in the data. Then you can use a countifs type formula to count your data set by looking at weeknumber column and comparing to the contents of A1 (and any other criteria that you want to use.
HTH
Miles
 
Upvote 0
Hi Cailean
Welcome to the board

Try:

=SUMPRODUCT(--(Table2[0101-Interface Variation MF]>0),--(Table2[0101-Interface Variation MF]<99.99),SUBTOTAL(2,OFFSET(Table2[0101-Interface Variation MF],ROW(Table2[0101-Interface Variation MF])-MIN(ROW(Table2[0101-Interface Variation MF])),,1)))
 
Upvote 0
Hi Cailean
Welcome to the board

Try:

=SUMPRODUCT(--(Table2[0101-Interface Variation MF]>0),--(Table2[0101-Interface Variation MF]<99.99),SUBTOTAL(2,OFFSET(Table2[0101-Interface Variation MF],ROW(Table2[0101-Interface Variation MF])-MIN(ROW(Table2[0101-Interface Variation MF])),,1)))


Perfect. This is exactly what i was looking for.

Thank you.

Cailean.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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