Associate
- Joined
- 7 Jun 2010
- Posts
- 73
Hi all,
I have the task to sort phone numbers in a list of contacts. The contacts have been imported into excel and I need to sort the phone numbers. There are a mixture of UK numbers and international numbers (mainly Russia)
The numbers either come in the following format
01232345434
+441232345434
+44 (0) 1232345434
+4401232345434
Or they have random spaces in between them or brackets around the 0
They need to be in the format of
+44 123 234 5434
Can anyone help me write a script to remove the spaces and brackets from the numbers, remove the 0s then append +44 Where needed, and add the spaces in the correct places
Thanks
I have the task to sort phone numbers in a list of contacts. The contacts have been imported into excel and I need to sort the phone numbers. There are a mixture of UK numbers and international numbers (mainly Russia)
The numbers either come in the following format
01232345434
+441232345434
+44 (0) 1232345434
+4401232345434
Or they have random spaces in between them or brackets around the 0
They need to be in the format of
+44 123 234 5434
Can anyone help me write a script to remove the spaces and brackets from the numbers, remove the 0s then append +44 Where needed, and add the spaces in the correct places
Thanks
