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
 
1675890319324.png
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Wrape this part

W6:W3290<>0

in IFNA like:

Excel Formula:
--IFNA(W6:W3290<>0,0)
 
Upvote 0
=SUMPRODUCT(SUBTOTAL(103,OFFSET(W6,ROW(W6:W3290)-ROW(W6),0,1)),--IFNA(W6:W3290<>0,0))

gives me value error
 
Upvote 0
If you can't use add-ins then just copy and paste your sample data here
Not image, as we are not able to identify what your data looks like
 
Upvote 0
You can see it works fine for me

1675893833621.png


Book7
ABCDE
1
22
3
4WEEKLY CHANGE
5PPCForecast StartForecast Finish
7A1
8A0
9A1
10B0
13
14
Sheet2
Cell Formulas
RangeFormula
B2B2=SUMPRODUCT(SUBTOTAL(103,OFFSET(B6,ROW(B6:B3295)-ROW(B6),0,1)),--IFNA(B6:B3295<>0,0))
 
Upvote 0
is there a way that this formula would ignore cells with NA? i had to delete all NAs for it to work.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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