Help with SUMIFS incorporating SUBTOTAL

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
I have the formula below, but I'd like to incorporate the 2nd formula (SUBTOTAL) also.

=SUMIFS(M13:M288,B13:B288,"Y")

=SUBTOTAL(9,M13:M288)

I have tried this:
=SUMIFS(SUBTOTAL(9,M13:M288),B13:B288,"Y")

and this:
=SUMIFS((SUBTOTAL(9,M13:M288)),B13:B288,"Y")

but the syntax seems to be wrong.

Can anyone help. Thanks.

Dan
 

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
Hello Dan, just to confirm.....

You want to sum M13:M288 when the corresponding cell in B13:B288 is equal to "Y"......but only for visible rows after filtering?

If so try this version

=SUMPRODUCT(SUBTOTAL(9,OFFSET(M13,ROW(M13:M288)-ROW(M13),0)),(B13:B288="Y")+0)
 
Upvote 0
Try This
Code:
=SUMPRODUCT(SUBTOTAL(9,OFFSET(M13:M288,ROW(M13:M288)-ROW(M13),0,1,1)),--(B13:B288="Y"))
 
Upvote 0
Do you mean an additional criterion in a new column? You can add more like this

=SUMPRODUCT(SUBTOTAL(9,OFFSET(M13,ROW(M13:M288)-ROW(M13),0)),(B13:B288="Y")+0,(Z13:Z288="X")+0)
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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