I have table of 800 staff; Col A = Name, Col B = Grade, Col C = Supervisor.
I'm trying to create a table which will have these columns plus extra columns to enable me to filter for staff reporting to a particular supervisor.
The supervisor isn't always on the next highest grade; they can sometimes be 3 or 4 grades higher.
The table I have in mind looks something like:
Name Grade Supervisor GradeA GradeB GradeC GradeD GradeE
Smith A Jones Jones Black Green
Jones C Black Black Green
Black D Green Green
Brown B Black Black Green
Green E
I've managed to get most of the way there using a long function incorporating several ifs, indexes and matches, but I can't get it to cope with:
- gaps of more than 2 grades between staff and their immediate supervisor (too many nested ifs)
- some members of staff have a supervisor at the same grade, in which case I want to show the latter entry.
I'm not looking for anyone to solve the problem, just to make some suggestions as to the best way forward.
If its any help, my current fomula to find a supervisor by referring to the member of staff in the previous column (Y)
=IF(Y22="-",IF($T22=Z$1,$B22,"-"),IF(INDEX($B:$T,MATCH(INDEX($B:$E,MATCH(IF(AND(Y22="NONE",X22="NONE"),W22,IF(Y22="NONE",X22,Y22)), $B:$B,0),4),$B:$B,0),19)=Z$1,INDEX($B:$E,MATCH(IF(AND(Y22="NONE",X22="NONE"),W22,IF(Y22="NONE",X22,Y 22)),$B:$B,0),4),"NONE"))
Any suggestions greatly appreciated.
Thank you.
Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!
Read this to understand why we ask you to do this
Apologies - I will delete this post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks