PDA

View Full Version : Formulas IF OR ELSE



Munkholm
2008-10-29, 08:56 AM
I´m trying to get a formula to return different text strings, depending on the value in another parameter (PARAM_A)

IF(PARAM_A = 1, "Text option A", " ") OR IF(PARAM_A = 2, "Text option B", " ") OR IF(PARAM_A = 3, "Text option C", " ")

I can get it working with just one option:

IF(PARAM_A = 1, "Text option A", " ")

Any, and All help, is greatly apreciated ! Thanks.

ptranberg
2008-10-29, 09:30 AM
Hi Klaus
Maybe just use IF. Only use OR if you want two statements to controle the value.
IF(PARAM_A=1,"Text option A",IF(PARAM_A=2,"Text option B",IF(PARAM_A=3,"Text option C"," ")))

Regards
Peter

Munkholm
2008-10-29, 09:38 AM
Whoohaaa. Thanks Peter, that works like a charm :-)