Formula to return value in correlation to oldest date.

jspence757

New Member
Joined
Mar 14, 2011
Messages
2
I need a formula to return the value adjacent to the cell containing the oldest date. So it would look like below

A B
1 03-01-2011 2
2 03-02-2011 7
3 03-03-2011 3


Formula would return 3
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I need a formula to return the value adjacent to the cell containing the oldest date. So it would look like below

A B
1 03-01-2011 2
2 03-02-2011 7
3 03-03-2011 3


Formula would return 3
Try this...

=INDEX(B1:B3,MATCH(MAX(A1:A3),A1:A3,0))
 
Upvote 0
Welcome to the board.

If you're looking for the oldest date, I'd think it would return 2 from the 03-01 date.

Try:

=INDEX(B1:B3,MATCH(MIN(A1:A3),A1:A3,0))

To return 3 for the latest date, change MIN to MAX:
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,239
Members
452,898
Latest member
Capolavoro009

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