Lookup Formula Required

Hello,

In Column A of my Spreadsheet I have a list of Account Numbers , each of these numbers is unique. In column B I have a Dept Code. In column D I again have Dept and in E I have State. I want to populate Column C with the right State which corresponds with the correct value by looking up the value in column E. I might not have made sense so have attached the excel spreadsheet.
Lookup-Example.xlsx
NewFocusConsultAsked:
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.

Ryan ChongCommented:
try place formula:

=VLOOKUP(B2,D:E,2,FALSE)

Open in new window


in C2, and then drag down...
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
LesterClaytonCommented:
=VLOOKUP(B2,D:E,2)

Open in new window


Results:
Lookup-Solution
I've attached your same Excel spreadsheet with the formula included on each line :)
Lookup-Solution.xlsx
0
Ryan ChongCommented:
@LesterClayton,

look for cell C12, there is no correspondent value in col E.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

LesterClaytonCommented:
Indeed, I was about to edit my post to say "Use Ryan Chong's" solution instead - it takes into account no values found. :)  But I can't edit once somebody else makes a post.

@NewFocusConsult - use Ryan Chong's answer.
0
NewFocusConsultAuthor Commented:
Thanks
0
Ryan ChongCommented:
@LesterClayton,

no worries I just want to highlight the error cell cheers.
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
Spreadsheets

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.