My proposal here is to move the information about the two permanently assigned employees to the top of the list on the 'Gate' sheet. Place the 'Pre-Gate' POW in E11 of the 'Allocation' sheet and modify the array entered formula* in C11 so that it reads:
Formula:
=IFERROR(INDEX(Gate!A$3:A$4,SMALL(IF(Gate!C$1:CV$1=E$6,IF(Gate!C$3:CV$4=E$7,ROW(A$3:A$4)-2)),ROW(A1))),"")
Modify the formula in D11 so that it reads:
Formula:
=IF(C11="","",INDEX(Gate!B$3:B$4,MATCH(C11,Gate!A$3:A$4,0)))
Modify the array entered formula* is C12 and down so that it reads:
Formula:
=IFERROR(INDEX(Gate!A$5:A$67,SMALL(IF(Gate!C$1:CV$1=E$6,IF(Gate!C$5:CV$67=E$7,ROW(A$5:A$67)-4)),ROW(A1))),"")
Modify the formula in D12 and down so that it reads:
Formula:
=IF(C12="","",INDEX(Gate!B$5:B$67,MATCH(C12,Gate!A$5:A$67,0)))
*Activate array entered formulas by simultaneously pressing the Ctrl, Shift and Enter keys (before copying).
Let us know if you have any questions.
Bookmarks