我已经获得了与外部供应商的距离列表,并且我想检查它们的准确性。我在列 1. The failure of any individual command in a multi-command pipeline shall not
cause the shell to exit. Only the failure of the pipeline itself shall be
considered.
2. The −e setting shall be ignored when executing the compound list following
the while, until, if, or elif reserved word, a pipeline beginning with the
! reserved word, or any command of an AND-OR list other than the last.
3. If the exit status of a compound command other than a subshell command was
the result of a failure while −e was being ignored, then −e shall not apply
to this command.
This requirement applies to the shell environment and each subshell environment
separately. For example, in:
set -e; (false; echo one) | cat; echo two
the false command causes the subshell to exit without executing echo one; how‐
ever, echo two is executed because the exit status of the pipeline (false; echo
one) | cat is zero.
中的距离与我们在N
列中经过验证的距离表的距离。作为次要并发症,并非Q
中的所有单元格都已填充。
以绿色突出显示的行表示相同的距离;浅红色背景表示轻微错误(10%边距以外的错误标记为亮橙色,此处未显示),蓝色文本低于实际值,红色高于实际值。
我希望通过将Q
(每行)中的单元格总数除以下来显示(在单元格AW1
中,而不是重要)精度百分比已填充的col Nx=Qx
中的单元格数。我想我应该可以用Q
来做,但我似乎无法找到合适的标准。
目前,我使用COUNTIF/COUNTIFS
查找COUNTIF($Q$3:$Q$3781, NOT(ISBLANK($Q3)))
中的非空单元格数量,但它根本不正确。尝试Q
作为对方的标准更是不成功。
有人能指出我正确的方向吗?
答案 0 :(得分:1)
使用此公式:
=SUMPRODUCT(($N$3:$N$3781=$Q$3:$Q$3781)*1)/COUNT($Q$3:$Q$3781)
它将计算匹配的数字,并除以Q列中带有数字的单元格数。