我无法搞清楚这一点,我在我的代码中插入了一个IF
语句,但我的字段仍显示0表示我的表中有空格。任何帮助将不胜感激!
=IFERROR(INDEX('Error'!$A$2:$I$5000,SMALL(IF('Error'!$E$2:$E$5000="","",IF(OR('Error'!$E$2:$E$5000="does
not match",'Error'!$A$2:$I$5000="not on the
Route"),ROW('Error'!$A$2:$A$5000))),ROW(2:2))-1,1),"")
已修改为包含expected results和table
答案 0 :(得分:0)
如果您的函数的目的是确定您范围内的至少一个单元格是否为空,则可以使用COUNTBLANK()函数,如下所示:
=IF(COUNTBLANK('Error'!$E$2:$E$5000) > 0, "at least one is empty", "no empty cell")
答案 1 :(得分:0)
我需要在代码的最开头添加条件才能使其工作,因此现在基本上有两个索引/小条件。现在,空白值按预期填充。
{=IFERROR(IF(INDEX('Error Report'!$A$2:$I$5000,SMALL(IF(OR('Error Report'!$E$2:$E$5000="Dealer does not match the shipment",'Error Report'!$A$2:$I$5000="Dealer ID is not on the Route"),ROW('Error Report'!$A$2:$A$5000)),ROW(4:4))-1,1)="","",INDEX('Error Report'!$A$2:$I$5000,SMALL(IF(OR('Error Report'!$E$2:$E$5000="Dealer does not match the shipment",'Error Report'!$A$2:$I$5000="Dealer ID is not on the Route"),ROW('Error Report'!$A$2:$A$5000)),ROW(4:4))-1,1)),"")}