I am wanting to use excel index match function to find a result by searching multiple columns and rows.
I have the following table set-up:
Depot Manger Employee Employee
1 Dave Haris Alex
2 Linda Elliot Tom
3 Eric Michael Lucy
4 James Glenda Mark
5 Frank John Paul
I want to get the depot number for the relevant employee or manager where the manager name or employee name matches the value in my cell AE16.
So let's say I type the employee Alex into my cell AE16 then my cell containing my formula should come back with depot 1.
At the moment I am using the following but it can only search one column not multiple columns. Could someone please show me how I can do this? Thanks in advance.
=INDEX('Depot Data'!A4:A509,MATCH(AE16,'Depot Data'!B4:BH1644,0))