formula correction

G

Guest

Can anyone correct the following formula:

=IF(J20="w",a!BT20,IF(J20="l",a!BT20,IF(J20="x",0,IF(J20="",a!BT20,0,if(K20="X",0))))

,or suggest an alternative?
 
G

Guest

I'm not quite sure exactly what you want. Could you describe exactly what you
would like to see happen, including which logical tests should take
precedence?
Or, you may want to look in the Help Files at the OR and AND Functions.

tj
 
A

Arvi Laanemets

Hi

=IF(J20="x","",IF(OR(J20="w",J20="l",J20=""),a!BT20,IF(K20="X",0,"")))


Arvi Laanemets
 
R

Ron Rosenfeld

Can anyone correct the following formula:

=IF(J20="w",a!BT20,IF(J20="l",a!BT20,IF(J20="x",0,IF(J20="",a!BT20,0,if(K20="X",0))))

,or suggest an alternative?

Perhaps:

=IF(J20="w",a!BT20,
IF(J20="l",a!BT20,
IF(J20="x",0,
IF(J20="",a!BT20,
IF(K20="X",0)))))

or (simpler):

=IF(OR(J20={"w","l",""}),a!BT20,IF(J20="x",0,IF(K20="X",0)))

Note that there are a number of things that J20 might contain that are
undefined, in which case the formula will return FALSE.



--ron
 
R

Ron Rosenfeld

Note that there are a number of things that J20 might contain that are
undefined, in which case the formula will return FALSE.

That should read "... J20 and K20 might contain ..."


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top