I am trying to create an employee hierarchy from a dataset that is provided in the following format (example):
| Employee Name | Supervisor Employee Number | Supervisor Name | Level 2 Supervisor Name | Level 3 Supervisor Name | Level 4 Supervisor Name | Level 5 Supervisor Name | Level 6 Supervisor Name | Supervisor Category |
| Ram | 1 | Keith | Hugh | Mike | Keith | | | |
| Stephen | 2 | Ram | Hugh | Mike | Keith | Ram | | |
| Annika | 3 | Ram | Hugh | Mike | Keith | Ram | | |
| John | 4 | Kerri | Hugh | Mike | Keith | Kerri | | |
| Roger | 5 | John | Hugh | Mike | Keith | Kerri | John | |
| Jonathan | 6 | John | Hugh | Mike | Keith | Kerri | John | |
| Stephanie | 7 | John | Hugh | Mike | Keith | Kerri | John | |
| Miguel | 8 | Ram | Hugh | Mike | Keith | Ram | | |
| William | 9 | Ram | Hugh | Mike | Keith | Ram | | |
| Debby | 10 | Kirsi | Hugh | Mike | Keith | Kirsi | | |
| Kerri | 11 | Keith | Hugh | Mike | Keith | | | |
| Brian | 12 | Kerri | Hugh | Mike | Keith | Kerri | | |
| Hugh | 13 | | | | | | | |
| Mike | 14 | | Hugh | | | | | |
My goal is to put each employee into a category as follows:
1.) Employee has multiple supervisees.
2.) Employee has one supervisee.
3.) Employee has no supervisees.
I would like to populate the far right column with a 1, 2, or 3 depending on how many supervisees the employee has.
Does anyone have any ideas for how I can do this?