Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果此数组中的值大于给定的安全值,我如何搜索安全值数组并返回布尔值/消息?
到目前为止,我只使用了一个简单的 IF 语句:
=IF(H10:J12>K10,"Safety concern identified","No Safety concern Identified")
但是,这将返回数组每个值的结果。相反,如果任何值超过限制,我只想返回一个单元格。有没有可以做到这一点的功能?
=IF(COUNTIF(H10:J17,">"&K10)>0,"Safety Concern Identified","No Safety Concern Identified")
对于任何寻找简单答案COUNTIF功能的人都可以实现这一点
COUNTIF