Why does a deleted name create the following error from a linked list?

梦想的初衷 提交于 2019-12-13 03:29:38

问题


I have a list called Assignment in which names appear (dropdown list). These names are assigned certain values, they are in the same line. The names are defined in a worksheet called Input Data! If I now delete a name like Green, John from the Input Data worksheet, then I get the following error in another worksheet (Evaluation). In this evaluation worksheet the values are evaluated by the following formula:

=ARRAY_CONSTRAIN(ARRAYFORMULA(SUM(IF((IF($B$2="dontcare",1,REGEXMATCH(Assignment!$E$3:$E$577,$B$2 &"*")))*(IF($B$3="dontcare",1,(Assignment!$E$3:$E$577=$B$3)))*(IF($B$4="dontcare",1,(Assignment!$D$3:$D$577=$B$4)))*(IF($B$5="dontcare",1,(Assignment!$F$3:$F$577=$B$5)))*(IF($B$6="dontcare",1,(Assignment!$B$3:$B$577=$B$6))),(Assignment!S$3:S$577)))), 1, 1)

The following error appears in the evaluation sheet: Error: During the evaluation of VLOOKUP the value "Green, John" was not found.

So my only question is, how to write a script that deletes the complete lines in the assignment list, if a line occurs with a name like Green, John, that is not in the input data list. short version: Example! Assignment sheet: line 7 Green, John -> check if Green, John is in sheet Input Data in row C! If Green, John is not in Input Data row C -> delete line 7 Green, John in Assignment! .... That is basically my question! example sheet with explanation: https://docs.google.com/spreadsheets/d/1OU_95Lhf6p0ju2TLlz8xmTegHpzTYu4DW0_X57mObBc/edit#gid=1763280488

来源:https://stackoverflow.com/questions/59135936/why-does-a-deleted-name-create-the-following-error-from-a-linked-list

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!