Lookup Formula Required


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

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
try place formula:


Open in new window

in C2, and then drag down...

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

Open in new window

I've attached your same Excel spreadsheet with the formula included on each line :)
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:

look for cell C12, there is no correspondent value in col E.
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

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.
NewFocusConsultAuthor Commented:
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:

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

From novice to tech pro — start learning today.