【问题标题】:Google Sheets multiple conditions with nested If statements?带有嵌套If语句的Google表格多个条件?
【发布时间】:2020-01-30 03:55:27
【问题描述】:
我真的很纠结这个公式,但我想我想多了。我不确定写这个的正确方法是什么:
我想要发生的是:
如果单元格 A1 = John AND
单元格 B1 = 买方
然后将 C1 中的美元金额乘以 10%
别的
如果单元格 A1 = John AND
单元格 B1 = 卖家
然后取 C1 中的金额并将其乘以 25% BUT
如果 A1 不等于 John,则返回 $0 的货币值
我真诚地感谢任何帮助。谢谢!
丽莎
【问题讨论】:
标签:
if-statement
google-sheets
nested
google-sheets-formula
【解决方案1】:
试试这个:
=if(A1="John",ifs(B1="Buyer",C1*10%,B1="Seller",C1*25%),0)
【解决方案2】:
或尝试:
=IF(A1="John",
IF(B1="Buyer", C1*10%,
IF(B1="Seller", C1*25%, )), 0)
或:
=IF((A1="John")*(B1="Buyer"), C1*10%,
IF((A1="John")*(B1="Seller"), C1*25%, 0))