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.
Who is Participating?

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

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.

ProfessorJimJamMicrosoft Excel ExpertCommented:
please find attached.

this is the formula that is used

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of just Enter.

In D2


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.

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.
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

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.
wrt1meaAuthor Commented:
Works great!
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad it worked for you.
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?
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?
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
No. Not at all. I just wanted to check that with you. Nothing else.  :)
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.