Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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