I need an excel formula

Good morning...

I need an excel formula....please see the attached example

I need it to look at Golumn G and if the areas are the same, return the earliest date in Column B for all areas that are the same, in Column D.
7-23-15.xlsx
LVL 1
wrt1meaAsked:
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.

ProfessorJimJamCommented:
please find attached.

this is the formula that is used

=VLOOKUP("*"&RIGHT(G2,3)&"*",$A$1:$B$13,2,FALSE)
7-23-15.xlsx
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of just Enter.

In D2

=MIN(IF($G$2:$G$13=G2,$B$2:$B$13))

Open in new window

and copy down.

*********************************
Remember that an Array Formula is confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.  You will know the array is active when you see curly braces { } appear around your formula.  If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.  Press F2 on that cell and try again.
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
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Since your dates are already sorted, a simple Vlookup will work in this case. But if your dates are not sorted, you will need the formula I suggested to you to get the earliest data that belongs to a specific area.
1
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

wrt1meaAuthor Commented:
OK, thanks for the comment about sorting dates. I was providing a small sample to illustrate what I needed and should have mentioned that in the production data, the dates will not be sorted.

Formula sktneer provided works perfectly.
0
wrt1meaAuthor Commented:
Works great!
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad it worked for you.
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
One question though, how did the formula suggested by ProfessorJimJam helped you as you also selected that as an acceptable solution specially in the real life when your dates are not sorted?

Was it a courtesy call?
0
wrt1meaAuthor Commented:
Yes it was....technically he provided a correct solution, I just failed to mention the specifics of the sort. I awarded him points based on his input and feedback....

Is there an issue with this?
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
No. Not at all. I just wanted to check that with you. Nothing else.  :)
0
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 Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.