#1
|
|||
|
|||
Extracting a phone number from a string that contains text and numbers.
Hi everyone,
I have a whole bunch of cells which contain names, addresses and phone numbers. Each row is varying length and I'm trying to just extract the phone number. The phone numbers are in this format: (xxx)xxx-xxxx so there are no spaces. Any help would be appreciated. |
#2
|
||||
|
||||
If still brackets in the text aren't present also number always from 13 signs, it is possible so:
Code:
=mid(a1,find("(",a1),13) |
#3
|
||||
|
||||
If the only place a left paren is to be found is at the beginning of a 13-byte phone number, then I agree with Serge's solution. I tend to distrust the claim that the input data will always be valid, so I'd be inclined to go with a user-written worksheet function that uses regular expressions. But not everyone will think that level of complication worth the effort.
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting Phone Numbers Question | certified_techy | Excel | 8 | 06-08-2012 02:27 AM |
Create Custom Labels for Phone numbers | Tonistep | Outlook | 0 | 03-26-2012 02:57 PM |
Convert numbers to a specific text string | francis | Excel | 1 | 10-06-2011 01:43 PM |
Extract numbers from a text string | aleale97 | Excel | 4 | 02-10-2011 10:33 AM |
Phone number formatting | Mark Micallef | Outlook | 1 | 08-04-2010 02:38 PM |