Using Subtotal with countifs

rishilaughs

New Member
Joined
Jun 10, 2013
Messages
6
ContentCategory
Random Content 1A
Random Content 2B
Random Content 3A
Random Content 4B
Random Content 6B

<tbody>
</tbody>

Dear,

I know this type of question has been addressed before but I was having problem understanding the multiple formulae used and how it could be applied to my specific problem.

What i am trying to do is, use Subtotal function in conjunction with Countif

For the given problem, please guide how to count(CountA) category (either A, B,C) in a filtered row using formulae.

I am using http://www.mrexcel.com/forum/excel-questions/698211-combine-countif-subtotal.html this as reference but having problem understanding so many nested formulae.

Thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Can you post the formula you would use before you decided you wanted to ignore rows hidden via filtering ?
 
Upvote 0
That's what i am having problem understanding to my case.
But i believe it would be more or less like
=SUMPRODUCT(SUBTOTAL(3,OFFSET(C10:C1000,ROW(C10:C1000)-MIN(ROW(C10:C1000)),,1))*(C10:C1000>50)) ( copied from post )

If everything would have been that easy i would have used formula like
=Subtotal(3,
COUNTIF(I1:I1000,"A" )

I assumed that category Column is I and i am counting only 'A' category

Thanks
 
Upvote 0
You're not understanding what we're asking for.

Imagine for a moment that COUNTIFS did in fact ignore hidden rows already.
What would your formula look like ?

But given your last post, I think I get it.

Assuming you're using XL2007+
I'd suggest a helper column, say column J for example
J1 and filled down put
=SUBTOTAL(3,I1)

Then use
=COUNTIFS(I1:I1000,"A",J1:J1000,1)
 
Upvote 0
Thanks Jonmo1

It was a great help!

Best Regards, :)

You're not understanding what we're asking for.

Imagine for a moment that COUNTIFS did in fact ignore hidden rows already.
What would your formula look like ?

But given your last post, I think I get it.

Assuming you're using XL2007+
I'd suggest a helper column, say column J for example
J1 and filled down put
=SUBTOTAL(3,I1)

Then use
=COUNTIFS(I1:I1000,"A",J1:J1000,1)
 
Upvote 0
Thanks Aladin for the help!
It showed me formula parse error.
I will try to understand what all these nested function convey and where could be possible error
But for the moment Jonmo1 reply saved me for the moment!

Best Regards,

Try something like:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(C10,ROW(C10:C1000)-ROW(C10),0,1)),(I10:I1000,"A")+0)
 
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,312
Members
449,152
Latest member
PressEscape

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