SUMPRODUCT of MAX

VanillaBean

New Member
Joined
Mar 9, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Book1
ABCDEFGHIJ
10123456
210.5300300300300450600750900
300.25200050100150200250300
4011000100200300400500600
510.25600600600600600600750900
610.3100100100100100120150180
71000115013001600192024002880
8
901300
101
112
123
134
145
Sheet1
Cell Formulas
RangeFormula
D2:J6D2=SUM(MAX($A2, ($B2*D$1))*$C2)
D7:J7D7=SUM(D2:D6)
B9B9=SUM(MAX($A$2:$A$6, ($B$2:$B$6*$A9))*$C$2:$C$6)


I need a formula that goes directly from cells A2:C6, to formulas in B9:B14. Note that A9:A14 correspond to the numbers in D1:J1. The results I want to generate in B9:B14 are in D7:J7.

Essentially, for each row in a range I want MAX of either col B or another cell multiplied by col A, and then multiply this col C. Then the SUM of this output across each row in the range.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Welcome to the Forum!

B9: =SUM(IF(A$2:A$6>B$2:B$6*A9,A$2:A$6,B$2:B$6*A9)*C$2:C$6)
 
Upvote 0

Forum statistics

Threads
1,214,780
Messages
6,121,522
Members
449,037
Latest member
tmmotairi

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