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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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