简体   繁体   中英

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

this is an array formula, so press Shift+Ctrl+Enter simultaneously when entering it.

=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.

Try below-

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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