This is a customer is always right type reply, because I agree with Marvin that this is more complicated than need be.
This proposed solution employs an array entered formula* as well as variations on a regular formula.
There is a chance, pretty good depending on the number of employees, that you'll find some last names duplicated, therefore the following array entered formula will index the list of employee numbers, which I assume to be unique values:
The basic formula that populates the rest of the information is:
*Array entered formulas are 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 ar
ound your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Let us know if you have any questions.
Bookmarks