Countif with subtotal

iuwilliams

New Member
Joined
Feb 15, 2016
Messages
2
I have a set up data where I need to filter by teacher and get a count of scores above a certain threshold. Please help!
I use the following formula for school data
=COUNTIF(A2:A201,">9")
I need to be able to get that same count when I filter by teacher A or B. COUNTIF is not allowed with SUBTOTAL.


Teacher skill 1 (4)Rhyme Production skill 2 (4) Isolate Initial Phonemes skill 3 (4) Identifying Final Sounds in Words Total
Teacher A 3 4 2 9
Teacher A 4 4 3 11
Teacher A 4 3 3 10
Teacher A 0 3 0 3
Teacher A 2 4 4 10
Teacher A 2 3 0 5
Teacher B 0 0 0 0
Teacher B 0 0 0 0
Teacher B 0 4 4 8
Teacher B 3 3 3 9
Teacher B 4 4 4 12
Teacher B 3 4 4 11
Teacher B 0 3 3 6
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try something like:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A2,ROW(A2:A201)-ROW(A2),0,1),--(A2:A201="teacher A"),--(E2:E201>9))

Adjust the ranges and the conditions to suit.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,524
Messages
6,131,176
Members
449,629
Latest member
Mjereza

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