MIN value based on 2 criteria

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi guys, been playing round with arrays and SUMPRODUCT for a while but can't quite get this right

I have repeated pairs in column A and B, and they each have a value in column E.

I need to find the minimum value in column E for each given pair...ideas?

(A2:A1600=A2) and (B2:B1600=B2) then MIN of (E2:E1600)

Will then copy this formula down for all 1600 rows to get the MIN of each pair
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
GHJKL.....IKLMK.....45869.....45869 (desired formula result)
GHJKL.....IKLMK.....45983.....45869 (desired formula result)
GHJKL.....IKLMK.....89562.....45869 (desired formula result)
IKLIO.....JUFKI.....85693.....23456 (desired formula result)
IKLIO.....JUFKI.....56231.....23456 (desired formula result)
IKLIO.....JUFKI.....23456.....23456 (desired formula result)
 
Upvote 0
Assuming your first value is in A2, the following array formula in D2 will work:

Code:
=MIN(IF(A2=$A$2:$A$7,IF(B2=$B$2:$B$7,$C$2:$C$7)))
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,894
Members
452,948
Latest member
Dupuhini

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