on 04-20-2011 7:22 PM
I want to do something like this...
IF W <> 0 AND X <> 0 THEN Y/A ELSE IF W <> 0 AND X == 0 THEN Z/A
I can do an IF THEN for the first part IF W <> 0 AND X <> 0 THEN Y/A
I can do an IF THEN for the second part W <> 0 AND X == 0 THEN Z/A
The problem is, when I try to put them into a single statement, I don't know what to put inbetween the two If thens.
Right now I have...
(( W <> 0) AND (X <> 0) * Y/A + ((W <> 0) AND (X == 0)) * Z/A
This doesn't work. I get ones, zeroes, or Xs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.