问题
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