[英]How to merge the results of a number of cells in excel, so that a yes in any one of the input cells will evaluate to yes in a single output cell?
I have a spreadsheet that looks something like this: 我有一个电子表格,看起来像这样:
Col1 Col2 Col3 Col4
yes no no no
no yes no no
no no no no
no no no no
How can I combine these results so that Col5 will equal "yes" if there is a "yes" in any of the cells in Col1-4 and only equal "no" if every cell in a row from col1-4 equals "no"? 如何合并这些结果,以便在Col1-4的任何单元格中有“是”的情况下,Col5都等于“是”,而从col1-4的行中的每个单元格都等于“否”时,则等于5 ?
So in this example the output should look like this: 因此,在此示例中,输出应如下所示:
Col1 Col2 Col3 Col4 Col5
yes no no no yes
no yes no no yes
no no no no no
no no no no no
(I am using a mac with Excel version 15.29) (我使用的Excel版本为15.29的Mac)
我会去:
=IF(COUNTIF(A2:D2,"yes")=0,"no","yes")
Pretty straight forward IF
with OR
: 用
OR
很简单的IF
:
=IF(OR(A1="yes";B1="yes";C1="yes";D1="yes");"yes";"no")
or 要么
=IF(OR(A1="yes",B1="yes",C1="yes",D1="yes"),"yes","no")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.