Find Max value and display adjacent cell contents

I would like a formula to find max value and display adjacent cell contents
 Date                        Value
20170230        20
20170417        50
20180323        15
20180930        25

max value  50   display 20170417

Many thanks and wish you all a Happy New Year

Ian BellretiredAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ShumsExcel & VBA ExpertCommented:
Hi Ian,

Assuming your Date Column is in Col A, Values are in Col B and you want result in Col C, try below Formula:

Open in new window

Check in attached...
Change the range accordingly
Ian BellretiredAuthor Commented:
Hi Shums,

I was wanting the date actually and place result at top of sheet.
I can find the Max value but would like to know what the date is.
Pls see attached
ShumsExcel & VBA ExpertCommented:
Hi Ian,

Please try below Array Formula, confirmed with Ctrl+Shift+Enter:
=MAX(IF(($A$5:$A$8=$A$2), $B$5:$B$8, ""))

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ian BellretiredAuthor Commented:
I just had to reverse the ranges to find the date.
Works perfectly
Thanks Shums and have a productive and healthy New Year
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.