Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi if statement in 1 formula

Status
Not open for further replies.

Bronnad

Programmer
Jul 2, 2012
16
US
Here is the formula I was trying to run...

if {data.DESCRIPTION} = ("Regular", "Bereavement", "Paid Bank", "Jury Duty", "Military - Hours", "Temp Disability/Sick", "Temp Dis-State tax exempt", "Temp Dis - Hours", "Temp Dis-State taxable", "FMLA- FLA", "Military Wages to offset reg", "Bank - Non-Eligible 401k")
then "Base Pay"
else {data.DESCRIPTION},
If {data.DESCRIPTION} = ("Severance-Welfare Plan", "Severance - Non Welfare")
then "Severance"
else {data.DESCRIPTION},

I failed, and I'm not sure why.
 

Try this:

if {data.DESCRIPTION} in ["Regular", "Bereavement", "Paid Bank", "Jury Duty", "Military - Hours", "Temp Disability/Sick", "Temp Dis-State tax exempt",
"Temp Dis - Hours", "Temp Dis-State taxable", "FMLA- FLA", "Military Wages to offset reg", "Bank - Non-Eligible 401k"]
then
"Base Pay"

else

If {data.DESCRIPTION}, in ["Severance-Welfare Plan", "Severance - Non Welfare"]
then
"Severance"

else {data.DESCRIPTION}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top