+ Reply to Thread
Results 1 to 3 of 3

Staff Hierarchy Problem

  1. #1
    Registered User
    Join Date
    11-13-2008
    Location
    Bury
    Posts
    10

    Staff Hierarchy Problem

    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,Y22)),$B:$B,0),4),"NONE"))

    Any suggestions greatly appreciated.
    Thank you.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Staff Hierarchy Problem

    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
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    11-13-2008
    Location
    Bury
    Posts
    10

    Re: Staff Hierarchy Problem

    Apologies - I will delete this post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1