subtotal & sumproduct

scoobyblue

Active Member
Joined
Jun 30, 2004
Messages
380
Probably quite simple this but I've been unable to join the two. I have values in column E that I want to total when filtered (subtotal(109...) but only when Column N has a "YES" in the cell. I guess I may need MATCH or INDEX, any help greatly appreciated.

Thanx,
scoobyblue
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I believe you would need something along the lines of:

=SUMPRODUCT(SUBTOTAL(109,OFFSET($E$2:$E$250,ROW($E$2:$E$250)-MIN(ROW($E$2:$E$250)),,1))*($N$2:$N$250="Yes"))

Alter ranges to suit but note you can't use entire column references pre XL2007 (nor should you want to as performance will be affected).

Note: OFFSET is Volatile
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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