Find Max value and display adjacent cell contents

Hi,
I would like a formula to find max value and display adjacent cell contents
example
 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
Ian BellretiredAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

ShumsDistinguished Expert - 2017Commented:
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:
=IF(MAX($B$2:$B$5)=$B2,MAX($B$2:$B$5),"")

Open in new window

Check in attached...
Change the range accordingly
RacePro_MaxValues.xlsx
1
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
Thanks
RacePro_MaxValues-V2.xlsx
0
ShumsDistinguished Expert - 2017Commented:
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

RacePro_MaxValues_v2.xlsx
1

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
Ian
1
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.