Forum Discussion
chris7749
Jul 02, 2023Copper Contributor
Format change - How to place "-" between numbers
I have a list of phone numbers that are not in a consistent format, and I want them all to have the same format, which is with a hyphen "-" between the numbers. It should be shown as the following ex...
- Jul 02, 2023
NikolinoDE
Jul 02, 2023Gold Contributor
=IF(ISNUMBER(FIND("-",B2)),B2,IF(LEN(B2)=12,B2,CONCATENATE(LEFT(B2,3),"-",MID(B2,4,4),"-",RIGHT(B2,4))))
With this formula you would not have to get a double "-" if they already exist in some numbers.
Paste the formula into A2 or C2 and just drag it down.
My answers are voluntary and without guarantee! 🙂
Hope this will help you.