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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

what is the best tool?

hi2019
8 - Asteroid

I need a tool or formula to remove for Address field - cleaning up data

 

  • Remove symbols except - &
    • Omit extra space left for these symbols: ‘ . , #
    • Leave space in place of for these symbols: / +
  • remove if 2+ spaces or extra space at beginning or end of data in cell
2 REPLIES 2
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

@hi2019 ,

Though it may not sound very fancy, I would use Formula tool, as you can put in as many functions as you like.

 

Input / Output data

InputOutput
 !"#$%&'()*+,-./ &
0123456789:;<=>?123456789
@ABCDEFGHIJKLMNOABCDEFGHIJKLMNO
PQRSTUVWXYZ[\]^_PQRSTUVWXYZ
`abcdefghijklmnoabcdefghijklmno
pqrstuvwxyz{|}~pqrstuvwxyz

 

Expressions in Formula tool

Output = ReplaceChar([Input], "'.,#", "")

Output = ReplaceChar([Output], "/+", " ")

Output = ReplaceChar([Output], '!"$%()*-:;<=>?@[\]^_`{|}~', "")

Output = REGEX_Replace([Output], "^\s\s+", "")

Output = REGEX_Replace([Output], "\s\s+$", "")

flying008
15 - Aurora
Hi, Could you please upload sample data as input and output that your want.
Labels
Top Solution Authors