I have a database hierachy where an employee is reporting to a Manager, i wanted get the value (Emp ID) of the employee's LAST Manager in the hierarchy.
In the example, Employee 1022 is reporting to Emp 4901 with "Manager" or "Mgr" in the position, however, the 2nd line manager of emp 1022 (i.e. the manager of emp 4901) is reporting to emp 4693 where it has "Manager" or "Mgr" in the position title also. Given this, the expected value of employee's LAST manager is Emp 4693. Basically, i want to get the emp id of the employee's Last manager in the hierarchy with "Manager" or "Mgr" position in the title.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.