Sumproduct + transpose + max

moccasinus

New Member
Joined
Aug 8, 2017
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi, is there a way to modify formula {=SUMPRODUCT(Sheet2!K$2:K$242;TRANSPOSE($B38:$IH38))} for it not to multiply all together, but to return maximum value from array Sheet2!K$2:K$242?
Been trying various ways, multiple criteria index match etc., but none seem to work
 
In that case I don't know. The only way I can get that formula to return #NUM is if that error is in one of the ranges
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
If you remove the Max from the formula, what do you get? Make sure there are plenty of empty cells below the formula as it will spill
 
Upvote 0
Without max this formula: {=SUMPRODUCT(Sheet2!K$2:K$242;TRANSPOSE($B38:$IH38))}
returns (Product1 in Sheet2!K$2:K$242 x Product1 in TRANSPOSE($B38:$IH38)) + (Product2 x Product2) + (Product3 x Product3)+ (Product4 x Product4) + ...
I'm trying to get MAX(Sheet2!K$2:K$242) to be multiplied by corresponding Product in TRANSPOSE($B38:$IH38)
 
Upvote 0
The formula I suggested does not use sumproduct.
 
Upvote 0
=MAX(Sheet2!K$2:K$242*TRANSPOSE($B38:$IH38))
your formula without arrays returns #spill, with arrays #value
 
Upvote 0

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

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