Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
If statement Google使用嵌套的If语句列出多个条件?_If Statement_Google Sheets_Nested_Google Sheets Formula - Fatal编程技术网

If statement Google使用嵌套的If语句列出多个条件?

If statement Google使用嵌套的If语句列出多个条件?,if-statement,google-sheets,nested,google-sheets-formula,If Statement,Google Sheets,Nested,Google Sheets Formula,我真的在为这个公式挣扎,但我觉得我想得太多了。我不确定写这个的正确方法是什么: 我希望发生的是: 如果单元格A1=John和 B1单元=买方 然后取C1中的美元金额乘以10% 其他的 如果单元格A1=John和 单元B1=卖方 然后取C1中的数值乘以25%,但是 如果A1不等于John,则返回货币值$0 我真诚地感谢任何帮助。非常感谢。 Lisa试试这个: =if(A1="John",ifs(B1="Buyer",C1*10%,B1="Seller",C1*25%),0) 试试这个: =if(

我真的在为这个公式挣扎,但我觉得我想得太多了。我不确定写这个的正确方法是什么:

我希望发生的是: 如果单元格A1=John和 B1单元=买方 然后取C1中的美元金额乘以10% 其他的 如果单元格A1=John和 单元B1=卖方 然后取C1中的数值乘以25%,但是 如果A1不等于John,则返回货币值$0

我真诚地感谢任何帮助。非常感谢。 Lisa试试这个:

=if(A1="John",ifs(B1="Buyer",C1*10%,B1="Seller",C1*25%),0)
试试这个:

=if(A1="John",ifs(B1="Buyer",C1*10%,B1="Seller",C1*25%),0)
或者尝试:

=IF(A1="John", 
 IF(B1="Buyer",  C1*10%, 
 IF(B1="Seller", C1*25%, )), 0)
或:

或者尝试:

=IF(A1="John", 
 IF(B1="Buyer",  C1*10%, 
 IF(B1="Seller", C1*25%, )), 0)
或:


对基山,非常感谢你!!非常感谢!对基山,非常感谢你!!非常感谢!