Sorry if this has been handled. I searched and couldn't find this exact situation.
I'm trying to use index/match or similar to compare text (a name) in one cell to that of 4 other cells (columns). Then for whichever cell contains the match, my result is the column header. In the table below, I am using A2 to search B2:E2. When there is a match in the text, return the corresponding header title from B1:E1.
TIA
I'm trying to use index/match or similar to compare text (a name) in one cell to that of 4 other cells (columns). Then for whichever cell contains the match, my result is the column header. In the table below, I am using A2 to search B2:E2. When there is a match in the text, return the corresponding header title from B1:E1.
A | B | C | D | E | F | |
1 | Completed By | Manager | Recruiter | Assistant | Admin | Completed By Role |
2 | Spano, Jessie | Spano, Jessie | Slater, AC | Morris, Zach | Kapowski, Kelly | Manager |
3 | Barakus, BA | Face | Hannibal | Barakus, BA | Murdock | Assistant |
4 | D, Furious | Lil Helper, Santas | D, Furious | V, Snowball | Poochie | Recruiter |
TIA