COUNTIF with SUBTOTAL?

MoreGone

New Member
Joined
Aug 15, 2016
Messages
14
I have a bunch of TEXT statuses that I am taking count of. The Statuses are in K, Count of all in L and would like to count filtered in M.

In the L column I have a working

=COUNTIF($L$11:$L$2000,K2)
=COUNTIF($L$11:$L$2000,K3)

etc.

But I am now trying to do a COUNTIF with SUBTOTAL which is NOT a function of SUBTOTAL, how do I go about this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try:

=SUM(IF(SUBTOTAL(103,OFFSET($L$11,ROW($L$11:$L$2000)-ROW($L$11),0)),IF($L$11:$L$2000=K2,1)))

confirmed with Control+Shift+Enter.
 
Upvote 0
Try:

=SUM(IF(SUBTOTAL(103,OFFSET($L$11,ROW($L$11:$L$2000)-ROW($L$11),0)),IF($L$11:$L$2000=K2,1)))

confirmed with Control+Shift+Enter.

Working 100%, thank you. I saw examples of SUMPRODUCT elsewhere on line with ROW and OFFSET but could not adapt it to work for me. Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,405
Members
449,157
Latest member
mytux

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