[英]Google Sheets Formula development
I have tried the same idea multiple ways and have now idea why I keep getting a formula parse error.我以多种方式尝试了相同的想法,现在知道为什么我不断收到公式解析错误。 It's probably incredibly simple.
这可能非常简单。 B column is populated with Y or N and I want the next column to be the antithesis.
B 列填充有 Y 或 N,我希望下一列是对立面。
= IF ( B2, 'N', 'Y')
@BigBen comment is the correct answer. @BigBen 评论是正确答案。
You are using IF(B2, condition if true, condition if false)
.您正在使用
IF(B2, condition if true, condition if false)
。 In your case you are checking if B2 = TRUE
在您的情况下,您正在检查
B2 = TRUE
You have to check if B2 = "Y"
and that is @BigBen comment:您必须检查
B2 = "Y"
是否是@BigBen 评论:
=IF(B2="Y","N","Y")
You can check how this and all the other Sheet Functions work at the documentation您可以在文档中检查此功能和所有其他工作表功能的工作方式
try:尝试:
=ARRAYFORMULA(IF(B2:B="Y"; "N"; "Y"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.