Hi all,
I have a column of contact information where it should just be one phone number, but it has been populated with multiple phone numbers, emails and various characters.
I have tried removing all characters and only taking the first 11 numerical values, but in some instances the column may have contained two phone numbers with the first number having the incorrect number of digits meaning I have taken the numbers from number 1 & number 2.
I am trying to split the numbers and emails exactly how they were entered (even if incorrect), that way I can perform validation on the numbers and clear any that fail validation. I'd also like to remove and +44 and replace with 0 etc..
Please see mock data below to show what I am trying to do.
Can anyone help with a way to achieve this?
I have a column of contact information where it should just be one phone number, but it has been populated with multiple phone numbers, emails and various characters.
I have tried removing all characters and only taking the first 11 numerical values, but in some instances the column may have contained two phone numbers with the first number having the incorrect number of digits meaning I have taken the numbers from number 1 & number 2.
I am trying to split the numbers and emails exactly how they were entered (even if incorrect), that way I can perform validation on the numbers and clear any that fail validation. I'd also like to remove and +44 and replace with 0 etc..
Please see mock data below to show what I am trying to do.
Original Data | Desired Result 1 (tel 1) | Desired Result 2 (tel 2) | Desired Result 3 (email 1) | Desired Result 4 (email 2) |
Phone: 02356 898/Mob: 07856498556 | 02356898 | 07856498556 | ||
02365898756 / Email example@email.com | 02365898756 | example@email.com | ||
other@email.com 077854698563 | 077854698563 | other@email.com | ||
023659987585 mremail@email.com/mrsemail@email.co.uk | 023659987585 | mremail@email.com | mrsemail@email.co.co.uk | |
+44(0)1365985678 | 01365985678 |
Can anyone help with a way to achieve this?