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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
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

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,108
Office Version
  1. 365
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,190,865
Messages
5,983,289
Members
439,836
Latest member
BuckyBoyRx

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
Top