I am trying to create a list of unique values that relate to another list of unique values.
Column A has a list of managers and column B has a list of supervisors that report to the manager in column A. There will be multiple supervisors that report to a mange, but no 1 supervisor will report to more that 1 manager. I am trying to create a formula that will be able to simplify this data, so that if a supervisor quits and another person gets hired, it will auto populate the change. An example below of what I mean
A B
1 Manager Name Supervisor Name
2 Fred Couple Mark Coghlan
3 Chad Porky Patrick O'Connor
4 Shakra Dupti Mitch McConnell
5 Shakra Dupti Mark Masters
6 Chad Porky Glenn Peach
So i Can simplify the list of managers in column A in lets say column D with the below array formula
{=IFERROR(INDEX($A$2:$A$50,MATCH(0,COUNTIF($D$1:D1,$A$2:$A$50),0)),"")}
But how can I do something similar in column E for the supervisor so that in the end I can get a sheet that would look like this
D E
1 Manager Name Supervisor Name
2 Fred Couple Mark Coghlan
3 Chad Porky Patrick O'Connor
4 Glenn Peach
5 Shakra Dupti Mitch McConnell
6 Mark Masters
Thanks in advance
Column A has a list of managers and column B has a list of supervisors that report to the manager in column A. There will be multiple supervisors that report to a mange, but no 1 supervisor will report to more that 1 manager. I am trying to create a formula that will be able to simplify this data, so that if a supervisor quits and another person gets hired, it will auto populate the change. An example below of what I mean
A B
1 Manager Name Supervisor Name
2 Fred Couple Mark Coghlan
3 Chad Porky Patrick O'Connor
4 Shakra Dupti Mitch McConnell
5 Shakra Dupti Mark Masters
6 Chad Porky Glenn Peach
So i Can simplify the list of managers in column A in lets say column D with the below array formula
{=IFERROR(INDEX($A$2:$A$50,MATCH(0,COUNTIF($D$1:D1,$A$2:$A$50),0)),"")}
But how can I do something similar in column E for the supervisor so that in the end I can get a sheet that would look like this
D E
1 Manager Name Supervisor Name
2 Fred Couple Mark Coghlan
3 Chad Porky Patrick O'Connor
4 Glenn Peach
5 Shakra Dupti Mitch McConnell
6 Mark Masters
Thanks in advance