In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How do you have the custom format automatically add quotes when there's a comma in a field

Dom
8 - Asteroid

I noticed in my output file that one of the fields has a comma so I would expect it to automatically output double quotes for that field when the format is comma delimited. The output file I removed all quotes. So, i only need it for fields that have Comma's for instance the address field.

11 REPLIES 11
jdunkerley79
ACE Emeritus
ACE Emeritus

I think this should work:

 

IIF(REGEX_Match([Address1],'.*,.*'),'"'+[Address1]+'"',[Address1])

 

Have attached a file in v9 format I think.

 

One other option is to add contains to your function library. Download this https://raw.githubusercontent.com/jdunkerley/AlteryxFormulaAddOns/35c93ee1da2a57a478018d7ca395a0c2e5... and save to C:\Program Files\Alteryx\bin\RuntimeData\FormulaAddIn

Dom
8 - Asteroid

Thank you! This expression worked 

IIF(REGEX_Match([Address1],'.*,.*'),'"'+[Address1]+'"',[Address1])  

The link you provided errored out 

Labels
Top Solution Authors