简体   繁体   English

如何在 excel 的行中检查特定条件

[英]How to check for specific condition in within a rows in excel

I have a situation which is mentioned below我有一种情况,如下所述

Problem Statement问题陈述

want to check if say Order ID: 835093 and Order Status is NO_ANSWER for every Sr.No up to 7 then I want to consider it as Yes otherwise No, for order ID: 735093, the output should be No as Order Status is multiple not unique想检查是否说订单 ID:835093 并且订单状态是否为每个 Sr.No 最多 7 的订单状态,然后我想将其视为是,否则否,对于订单 ID:735093,output 应该是否,因为订单状态是多个不独特的

this is an array formula, so press Shift+Ctrl+Enter simultaneously when entering it.这是一个数组公式,所以输入的时候要同时按Shift+Ctrl+Enter。

=IF(SUM(IF(B$2:B$18=E2, 1/COUNTIFS(B$2:B$18,E2,C$2:C$18,C$2:C$18),""))=1,"Yes","No")

Paste it to G2, make it an array formula and then copy and paste it to G3.将其粘贴到 G2,使其成为数组公式,然后将其复制并粘贴到 G3。

Try below-试试下面 -

=IF(COUNTA(UNIQUE(FILTER($C$2:$C$9,$B$2:$B$9=E2)))>1,"No","Yes")

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM