简体   繁体   中英

Excel formula: counting criteria within an array

I'm facing an Excel issue that I haven't been able to solve with any quick formulas.

I'm working with an Excel spreadsheet which contains 3 columns A:B. Column A "CODE" displays strings of repeated values, column B "CHECKS" also displays strings of repeated values and column C which should output TRUE/FALSE.

On the side column E, I have a criteria box with 3 values, 55, 66, 77 I would be interested in knowing whether these values appear in column B for each unique strings within column A and output a TRUE if they do.

Here is an image which illustrates my example:

例子

Is there an easy way of calculating this via a formula or array formula?

简单的方法是检查每个标准,然后查看是否都满足(公式进入单元格 C2)

=(COUNTIFS(A:A,A2,B:B,$E$2)>0)*(COUNTIFS(A:A,A2,B:B,$E$3)>0)*(COUNTIFS(A:A,A2,B:B,$E$4)>0)=1

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