Sumproduct(MIN(( returns zero

tomass

New Member
Joined
Apr 13, 2010
Messages
14
Hi All,

I have following table:

A B C
1 23 45
1 2 44
1 2 23
1 3 24
1 23 55
1 24 55
2 24 66
2 22 65

With the help of following formula i can find the Max value in column c that meets criterias for coulmn A and B.
=SUMPRODUCT(MAX(($A$1:$A$8=$A$11)*($B$1:$B$8=$A$12)*($C$1:$C$8)))

This formula works fine with the max function but when I want to use the same formula for the MIN function it only returns 0 :confused:


Any advice someone ?


best regards
tomas
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hello tomas, because of the multiplication the FALSE results give you zeroes, hence zero returned for the minimum - try this "array formula"

=MIN(IF(($A$1:$A$8=$A$11)*($B$1:$B$8=$A$12),$C$1:$C$8))

confirmed with CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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