VLOOKUP function finding MIN value or MIN(IF()) Function

Status
Not open for further replies.

gateway123

New Member
Joined
Jul 18, 2012
Messages
5
I want to fetch the least value for 1 and 2, but I also want to fetch year associate with that minimum value.

1 2000 0.01 1
1 2001 0.00 2
1 2002 0.04
1 2003 0.09
1 2004 0.04
1 2005 0.06
2 2000 2.01
2 2001 3.00
2 2002 7.04
2 2003 1.09
2 2004 2.04
2 2005 0.06



Results should look like

1 2001 0.00
2 2005 0.06


gsistek suggested this function it gives only the minimum value but I also want the year associated with this value
=MIN(IF(A1:A11=D1,C1:C11,9.99E307))
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Say that formula is in E1.

F2: =index(b$1:b$12,match(E1,c$1:c$12,0))

Note, if the max appears more than once this will result in an error.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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