简体   繁体   中英

Excel formula to extract yes

I have an excel sheet with different columns with all have the value Yes or No . I want in my last column a formula that extract a result of all the previous columns.

If all the values are No , the result has to be No Is one or more values Yes , the result should be Yes

I don't know which formula I can use for that. Can someone help?

=IF(COUNTIF(A1:C1,"Yes") > 0,"Yes","No")

将A1:C1更改为感兴趣的列的范围

You just need nested OR functions for each column. Here's a sample with 3 columns:

=OR(A1="yes",OR(B1="yes",C1="yes"))

excel截图

For additional columns, add another OR around the existing, with one argument testing the this code, and then add your new column as the other argument.

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