cmcreynolds
Active Member
- Joined
- May 21, 2015
- Messages
- 295
Hello
I'm bringing in data from Salesforce using Power Query and I have to work with a phone number field that has the phone numbers in a various assortment of formats.
examples:
618-345-9876
(618) 899-0000
6181234567
+16185678901
Is there a way to clean up the field to get them all in the same format? I was thinking something along the lines of getting rid of any non-numeric characters, and then excluding any left-leading 1s. (Ultimately, I'm only needing the US Area code anyway, no other part of the number). But I don't know how to do that in PQ.
Any suggestions?
I'm bringing in data from Salesforce using Power Query and I have to work with a phone number field that has the phone numbers in a various assortment of formats.
examples:
618-345-9876
(618) 899-0000
6181234567
+16185678901
Is there a way to clean up the field to get them all in the same format? I was thinking something along the lines of getting rid of any non-numeric characters, and then excluding any left-leading 1s. (Ultimately, I'm only needing the US Area code anyway, no other part of the number). But I don't know how to do that in PQ.
Any suggestions?