+ Reply to Thread
Results 1 to 6 of 6

extract numberic value from cell and combine and add symbol in new cell

Hybrid View

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    malaysia
    MS-Off Ver
    2007
    Posts
    28

    extract numberic value from cell and combine and add symbol in new cell

    Hi all, i do have list of phone numbers key-ed in to excel sheet. Im removing the duplicates but excel dosent detect some of it example if the number has extra spaces or area code.

    Example would be:
    +6010-806 6666
    010-8066666
    010-806 6666

    Different kinds of ways that it is saved. So meaning to say i would have to extract numbers out into another cell and add a "-" into it. If not when there are NUMBER starting 0 excel would mess it up. The "-" symbol must be from starting from left after the third digit. So makes the outcome 010-8066666.

    The formula i have now:

    Formula: copy to clipboard
    =SUMPRODUCT(MID(0&A2,LARGE(INDEX(ISNUMBER(--MID(A2,ROW($1:$25),1))* ROW($1:$25),0),ROW($1:$25))+1,1)*10^ROW($1:$25)/10)


    Just need to add "-".

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,322

    Re: extract numberic value from cell and combine and add symbol in new cell

    This is pretty much a duplicate thread: https://www.excelforum.com/excel-gen...nt-format.html

    Please don't waste people's time by starting new threads for the same issue. And it is common courtesy to reply to the answers you have in your original threads. Ideally, mark them as solved and link to the new thread if you feel that is helpful.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-24-2014
    Location
    malaysia
    MS-Off Ver
    2007
    Posts
    28

    Re: extract numberic value from cell and combine and add symbol in new cell

    Quote Originally Posted by TMS View Post
    This is pretty much a duplicate thread: https://www.excelforum.com/excel-gen...nt-format.html

    Please don't waste people's time by starting new threads for the same issue. And it is common courtesy to reply to the answers you have in your original threads. Ideally, mark them as solved and link to the new thread if you feel that is helpful.
    Please note that its not a duplicated thread, two thread clearly states different ways to get different results, one is extracting and one is removing duplicates.! I respect the forum and anyhow i wont waste forum space

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,420

    Re: extract numberic value from cell and combine and add symbol in new cell

    That is not a large sample size to work on, but this formula in B2 will get all those numbers into the same format:

    =SUBSTITUTE(SUBSTITUTE(A2,"+6","")," ","")

    Copy down, as required.

    Hope this helps.

    Pete

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,420

    Re: extract numberic value from cell and combine and add symbol in new cell

    Sorry, Trevor, I didn't see the other thread, and your post here had not appeared when I started my reply.

    Pete

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,176

    Re: extract numberic value from cell and combine and add symbol in new cell



    =TEXT(SUMPRODUCT(MID(0&A2,LARGE(INDEX(ISNUMBER(--MID(A2,ROW($1:$25),1))* ROW($1:$25),0),ROW($1:$25))+1,1)*10^ROW($1:$25)/10),"000\-0000000")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I want to extract symbol (format) of currency from each cell
    By Rajeshb938 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2016, 09:32 PM
  2. [SOLVED] extract numberic database from long string value depends upon index value
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2015, 08:45 AM
  3. [SOLVED] Extracting Unique numbers from a cell in numberic order
    By skyping in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2014, 12:37 PM
  4. [SOLVED] Changing Tab Color based on cell numberic value
    By karlzweb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-08-2013, 10:57 AM
  5. Tick symbol & cross symbol in a cell
    By sivdin in forum Excel General
    Replies: 2
    Last Post: 02-17-2011, 08:58 AM
  6. Extract only numberic values from a cell
    By tferrence in forum Excel General
    Replies: 3
    Last Post: 08-11-2008, 12:35 PM
  7. [SOLVED] alpha numberic cell
    By clambake5 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-17-2005, 07:06 PM

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