How to combine two IF statements in excel

◇◆丶佛笑我妖孽 提交于 2021-01-29 18:39:59

问题


I want to combine the following two IF statements in excel but I was not able to do so. I have tried to use IF, AND, OR statements with no luck.

=IF(C98="CAB",D98*R1-F98,F98-D98*S1)
=IF(C99="CAB",I99*R6-D99,F99-I99*S6)

Once I want to combine the two I get you are trying to create too many arguments.

Thanks, Jay


回答1:


If you want to combine formulas and according to your last comment, it looks like you are trying to do something like this:

=if(condition="CAD",perform Calculation,If(Condition="something else",perform calculation,do Nothing or another If statement if needed))

You can combine formulas on the True/False part of the if statement. I don't know if that is exactly what you're trying to do but at least it might get you in the right direction.



来源:https://stackoverflow.com/questions/48443128/how-to-combine-two-if-statements-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!