Solved! Go to Solution.
One trick you can do is to reference the same field in a formula tool multiple times. This will allow you to have each of your expressions run in sequence without having to use an IF statement at all.
Or you can chain them together with IF statements in a single formula. It might look like this:
if findstring([EMAIL], "_com")>=0 then
Replace([EMAIL], "_com", ".com")
elseif findstring([EMAIL], "_org")>=0 then
Replace([EMAIL], "_org", ".org")
elseif findstring([EMAIL], "_DONOTCONTACT")>=0 then
Null()
else
[EMAIL]
endif
Finally, you might look into the Find/Replace tool which will allow you to do a table lookup of things you want to replace. See the help for it:
http://help.alteryx.com/current/index.htm#FindReplace.htm