必要的IF陈述式,预设值为'x'

时间:2018-12-04 04:15:24

标签: google-sheets google-sheets-formula

我想了解的是如何在一行代码中做到这一点?

=IF(H15 = True,"H15 is the best plan"), IF(H16 = True, "H16 is the best  plan"),

1 个答案:

答案 0 :(得分:0)

您需要嵌套IF(即不要过早地将括号括起来):

=IF(H15=True,"H15 is the best plan",IF(H16=True,"H16 is the best plan","x"))

如果需要,在"x"前添加更多IF子句-并添加适合的右括号。