Max / Min but Returning Adjacent Data

glerwell

Well-known Member
Joined
Jun 25, 2006
Messages
1,082
Hi

I have some data on my sheet like so:

Excel Workbook
ST
12DATEOVERALL
1314/04/20110.76
1413/04/20112.28
1512/04/20111.50
16**
17**
1811/04/20110.07
19**
2010/04/20110.94
21**
2209/04/20110.76
23**
24**
2507/04/20111.28
26**
27**
2806/04/20110.74
2905/04/20110.76
3004/04/20111.00
31**
32**
3301/04/20112.04
34**
35**
3631/03/20110.15
37**
3830/03/20110.50
PROFITS


What I want is 2 formulas that will look in column T and find the max and min vlaue but return the date that is adjacent to it in column S.

So from the data above I would like "13/04/2011" returned for MAX and "112/04/2011" for MIN.

Thanks in advance
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi

I have some data on my sheet like so:

Excel Workbook
ST
12DATEOVERALL
1314/04/20110.76
1413/04/20112.28
1512/04/20111.50
16**
17**
1811/04/20110.07
19**
2010/04/20110.94
21**
2209/04/20110.76
23**
24**
2507/04/20111.28
26**
27**
2806/04/20110.74
2905/04/20110.76
3004/04/20111.00
31**
32**
3301/04/20112.04
34**
35**
3631/03/20110.15
37**
3830/03/20110.50
PROFITS


What I want is 2 formulas that will look in column T and find the max and min vlaue but return the date that is adjacent to it in column S.

So from the data above I would like "13/04/2011" returned for MAX and "112/04/2011" for MIN.

Thanks in advance
Try these...

For the MAX:

=INDEX(S13:S38,MATCH(MAX(T13:T38),T13:T38,0))

For the MIN:

=INDEX(S13:S38,MATCH(MIN(T13:T38),T13:T38,0))

Format as Date
 
Upvote 0
Hi

I have some data on my sheet like so:

Excel Workbook
ST
12DATEOVERALL
1314/04/20110.76
1413/04/20112.28
1512/04/20111.50
16**
17**
1811/04/20110.07
19**
2010/04/20110.94
21**
2209/04/20110.76
23**
24**
2507/04/20111.28
26**
27**
2806/04/20110.74
2905/04/20110.76
3004/04/20111.00
31**
32**
3301/04/20112.04
34**
35**
3631/03/20110.15
37**
3830/03/20110.50
PROFITS


What I want is 2 formulas that will look in column T and find the max and min vlaue but return the date that is adjacent to it in column S.

So from the data above I would like "13/04/2011" returned for MAX and "112/04/2011" for MIN.

Thanks in advance
U12, just enter:

=MAX(T13:T38)

U13, just enter:

=COUNTIF($T$13:$T$38,U12)

U14, control+shift+enter, not just enter, and copy down:
Code:
=IF(ROWS(U$14:U14)<=U$13,INDEX($S$13:$S$38,SMALL(IF($T$13:$T$38=U$12,
     ROW($S$13:$S$38)-ROW($S$13)+1),ROWS(U$14:U14))),"")

V12, just enter:

=MIN(T13:T38)

Copy across U13 to V13.

Copy across U14 to V14 and then down.
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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