excel countifs only filtered data

bizzbuzz05

New Member
Joined
Jun 15, 2018
Messages
5
Hi,

I have a Countifs function but I need it only to do filtered data. I have tried looking up how to do the "SUMPRODUCT" but cant get it to work.

Here is the Countifs =COUNTIFS(A7:A8000,"=Female",H7:H8000,"=Always").
How would I change it to the SUMPRODUCT or another function to count only filtered data?

Thanks
Bizzbuzz05
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A7,ROW(A7:A8000)-ROW(A7),0,1)),--(A7:A8000="Female"),--(H7:H8000="Always"))
 
Upvote 0
Thanks for reply and helping.

It only shows 0.

I assume that you have headers in row 6 and you apply filters on one or some of these headers (autofilter).

If so, the suggested formulashould work.


If you do filtering manually, try...

=SUMPRODUCT(SUBTOTAL(103,OFFSET(A7,ROW(A7:A8000)-ROW(A7),0,1)),--(A7:A8000="Female"),--(H7:H8000="Always"))
 
Upvote 0
Om my god!! it works.. thank you, thank you, thank you.

Ive been working on it all morning. thank you again.



I assume that you have headers in row 6 and you apply filters on one or some of these headers (autofilter).

If so, the suggested formulashould work.


If you do filtering manually, try...

=SUMPRODUCT(SUBTOTAL(103,OFFSET(A7,ROW(A7:A8000)-ROW(A7),0,1)),--(A7:A8000="Female"),--(H7:H8000="Always"))
 
Upvote 0
Hello Aladin,
Im trying to count number of cells that do not equal 0 in any column with applied filter (say i applied filter in column A and i want the count in column B (only for visible rows orfcourse). What would be the formula?
 
Upvote 0
Hi & Welcome to MrExcel.

Try

Excel Formula:
=SUMPRODUCT(SUBTOTAL(103,OFFSET(B2,ROW(B2:B100)-ROW(B2),0,1)),--(B2:B100<>0))
 
Upvote 0
Can you post some sample data using below xl2bb link
 
Upvote 0

Forum statistics

Threads
1,216,734
Messages
6,132,418
Members
449,727
Latest member
Aby2024

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