The basic problem I am working with is... "Here is a list in excel of everyone in the company (empl id in column A, supervisor id in column B)... Determine the Vice President that each person rolls up to."
Everyone has ids and I have the list of VP's; the quirk is that while some may have a VP id in the supervisor field, most have a manager's who have the VP id as their supervisor. There could be 2,3,4, etc steps up to finally roll up to the VP.
I am thinking that a loop using a flag needs to be used, but the logic and syntax are bogging me down. If a specific example is needed, I can provide. HELP!
Everyone has ids and I have the list of VP's; the quirk is that while some may have a VP id in the supervisor field, most have a manager's who have the VP id as their supervisor. There could be 2,3,4, etc steps up to finally roll up to the VP.
I am thinking that a loop using a flag needs to be used, but the logic and syntax are bogging me down. If a specific example is needed, I can provide. HELP!