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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,215,428
Messages
6,124,832
Members
449,190
Latest member
rscraig11

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