Advanced Macro Question

I'm building a macro and I need some help.

Suppose I have information in Columns "A" and "B" that never change:
Column A: Suporvisor's Name
Column B: Employee Name

Now suppose I put information into Column D
Column D:  Employee Name (The names are the same names in column B, however, they might be on different rows)

I need the macro to put the proper suporvisor's name into column e.

Example:  Suzy is in cell b4.  Her suporvisor, Linda, is in cell a4.  Now suppose I type Suzy's name in cell d50.  I need Linda's name to appear in cell e50.


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.

A simple Vlookup should work, given your supervisor and employee range is A1:B50 and you switch your columns of Supervisor and Employee:

Cell E50's formula "=vlookup(d50,"A1:B50,2,"False")"
dandm2003Author Commented:
The formula works, but I forgot to ask if there is a way it can ignore if it is in CAPS for not.

For example, everything in column B is lowercase ("Kathy"), but column D is uppercase ("KATHY")

Any thougths?  Sorry I forgot to mention this!

This - ("Kathy") is ProperCase and not Lowercase, as a note.


Lowercase would be:


One other quick note is that the data in column A should be sorted.


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
dandm2003Author Commented:
Works perfect now.  Thanks for the help!
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
Visual Basic Classic

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.