+ Reply to Thread
Results 1 to 10 of 10

Extract 10 digit numbers from other text

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Extract 10 digit numbers from other text

    Hello Everyone. My name is Pete. I am new to the forum and to Excel. I hope to learn a lot here The reason I signed up is for help with my first Excel project. I am trying to extract 10 digit numbers (phone numbers without separation eg. 1234567890) and put them in an adjacent column in their respective rows. To make this even harder, there are 2 columns where the phone numbers may be, and sometimes 2 phone numbers. I am attaching an example. The password is "excelforum.com" Thanks! Glad you guys are here.

    Edit: I just noticed some have dashes eg. 123-456-7890 and some have commas next to the number eg. 1234567890,
    Attached Files Attached Files
    Last edited by mellopete; 08-07-2012 at 08:15 PM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Extract 10 digit numbers from other text

    The file is protected.

  3. #3
    Registered User
    Join Date
    08-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Extract 10 digit numbers from other text

    Quote Originally Posted by jindon View Post
    The file is protected.
    The password is "excelforum.com". Thanks

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Extract 10 digit numbers from other text

    Try a macro like the following. It outputs any phone numbers found in columns C & D in column E, formatted as "(000)-000-0000". Multiple phone numvers are separated with a '/'.
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Extract 10 digit numbers from other text

    Quote Originally Posted by mellopete View Post
    The password is "excelforum.com". Thanks
    Ahhh,,, I missed it in your first post.
    Please Login or Register  to view this content.
    Last edited by jindon; 08-07-2012 at 10:58 PM.

  6. #6
    Registered User
    Join Date
    08-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Extract 10 digit numbers from other text

    Thank you both very much. They work great. Now it's time to study them and see if I can learn something

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Extract 10 digit numbers from other text

    @ mellopete

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Registered User
    Join Date
    08-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Extract 10 digit numbers from other text

    Hi Cutter. Thank you. I missed your post, but dilipandey pointed that out in my other post as well. Regarding the rep, I gave rep to a few users, but on my profile it says 0 given. Is that right?

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Extract 10 digit numbers from other text

    If you're talking about the Post Thanks / Likes tab on your profile I don't think that has anything to do with 'reps'. I'm pretty sure it is only for the 'competition' threads.

  10. #10
    Registered User
    Join Date
    08-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Extract 10 digit numbers from other text

    Got it. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1