Link to home
Start Free TrialLog in
Avatar of NewFocusConsult
NewFocusConsult

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
=VLOOKUP(B2,D:E,2)

Open in new window


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

look for cell C12, there is no correspondent value in col E.
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.
Avatar of NewFocusConsult
NewFocusConsult

ASKER

Thanks
@LesterClayton,

no worries I just want to highlight the error cell cheers.