基于特殊条件的自动旋转系统

时间:2018-09-24 13:21:49

标签: excel

我正在尝试创建用于使用现有序列将任务分配给团队的系统。我有四个单独的列:

Column A – Indicates the given sequence of operators
Column B – Indicates number of current tasks per operator (imported from another file by vlookup)
Column C – Indicates the name of the operator that was assigned to the last task (imported from another file by vlookup)
Column D – Indicates whether any of the operators are currently on holiday (check/uncheck check box (TRUE/FALSE logic)

我想使系统自动化,以便显示下一个要接收任务的操作员,但是该操作员必须已分配给他/她的任务不超过4个,并且必须在场(不在假期)。

选择过程必须重复合并给定的序列,直到选择名称为止,因此,如果序列中的姓氏不完全匹配,则系统必须以序列中的名字开头。

请问有人可以解决这个问题,因为我已经完全库存了。 当前,我在下面的列中包含以下=IF(B2<=4,A2,"N/A"),在另一列中包含以下=IF(E2=FALSE,F2,"N/A")。还有=INDEX(SQESequence,MATCH(C2,SQESequence,0)+1,1)的另一列,但这并不是完全自动化的。

1 个答案:

答案 0 :(得分:1)

我认为我了解您的问题,并提出了解决方案。可能存在一个更优雅的公式解决方案,如果我有时间的话,会更多地使用它。

{=IFERROR(INDEX(INDIRECT("A"&MATCH(C2,A2:A5)+1&":A5"),MATCH(1,(INDIRECT("A"&MATCH(C2,A2:A5)+1&":A5")<>$C$2)*(INDIRECT("B"&MATCH(C2,A2:A5)+1&":B5")<4)*(INDIRECT("D"&MATCH(C2,A2:A5)+1&":D5")=FALSE),0)),INDEX($A$2:$A$5,MATCH(1,($A$2:$A$5<>$C$2)*($B$2:$B$5<4)*($D$2:$D$5=FALSE),0)))}

输入CTRL SHIFT ENTER设置为数组公式,然后每个函数返回一个值数组,而不仅仅是一个值。您知道看到{}的

时已将其设置为数组公式

他们说一张图片值1000字。...所以这是三个!

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here