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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF Formula

Status
Not open for further replies.

dcjames

Technical User
Nov 3, 2010
32
US
I know I should probably know the answer to this, but I can't seem to get a formula to work correctly.

I have a field with spaces in the values ( e.g. "New User" "Old User" "Medium User")

When I try to do the following I get an error

If (field name) in ("New User", "Old User) then "User" else ""

The error indicates that a ) is required after "New User"

Any help is appreciated.

Thanks
 
Put the list in brackets "[]" like:
Code:
If {field} in ["New User" , "Old User"] then "User" else ""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top