Is there any way to have SUMPRODUCT have a "multi-area selection" for one of its arguments?

TomCon

Active Member
Joined
Mar 31, 2011
Messages
373
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I want a SUMPRODUCT like this:
=SUMPRODUCT(A1:A5,[something])
The [something] would be a selection of 5 cells (to match A1:A5 in length), say the cells i want are: B1, B3, B5, B7, B9.
Is it possible? Cannot find a way to do it.

Thanks!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Excel Formula:
=SUMPRODUCT(A1:A5,CHOOSE(SEQUENCE(5),B1,B3,B5,B7,B9))
 
Upvote 0
Solution
Yes! Thanks very much. Great to see what clever solutions people can offer! Hope i can learn from it, too!
 
Upvote 0
If your ranges happened to be much larger, this one would be more readily expandable as you don't have to individually list the column B cells.

Excel Formula:
=SUMPRODUCT(A1:A5,FILTER(B1:B9,MOD(ROW(B1:B9)-ROW(B1),2)=0))
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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