Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Luisanabria
Creator
Creator

Clean/Remove Spaces

Hi good day

Im working with one excel that has phone numbers like this:

55  6514  4854
55  2211  0014

Does anyone could help me how to remove spaces in the script?  l saw that using TRIM but function says only leading and trailing spaces.

Thanks all

Labels (4)
2 Solutions

Accepted Solutions
stevejoyce
Specialist II
Specialist II

you can use purgechar() for this.

 

purgechar(fieldname, ' ') as fieldname_nospaces

View solution in original post

ggijben
Partner - Creator II
Partner - Creator II

Hi @Luisanabria , 

An alternative is:

REPLACE(fieldname, ' ', '')

View solution in original post

2 Replies
stevejoyce
Specialist II
Specialist II

you can use purgechar() for this.

 

purgechar(fieldname, ' ') as fieldname_nospaces

ggijben
Partner - Creator II
Partner - Creator II

Hi @Luisanabria , 

An alternative is:

REPLACE(fieldname, ' ', '')