+ Reply to Thread
Results 1 to 4 of 4

Converting numbers with dashes

Hybrid View

  1. #1
    Registered User
    Join Date
    11-30-2009
    Location
    El Paso, TX
    MS-Off Ver
    Excel 2003 (not by choice)
    Posts
    6

    Converting numbers with dashes

    Hello,

    I have a spreadsheet with numbers that were entered with dashes, ie. 1111-22-333-4444

    I would like to convert this to just a straight number that excel will recognize and work with, ie 1111223334444

    I have attached a small example.

    Thank you for your help
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446

    Re: help converting numbers with dashes

    Hi,

    =VALUE(SUBSTITUTE(A3,"-",""))

    and copy down should do it.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: help converting numbers with dashes

    Using your posted workbook...try this:
    C3: =--SUBSTITUTE(A3,"-","")
    Copy that formula down as far as you need.
    If you need numbers, and not formulas...
    Copy the formula range and Home.Paste.Paste_Values

    Note: The double-minus coerces the numeric text into actual numbers.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    11-30-2009
    Location
    El Paso, TX
    MS-Off Ver
    Excel 2003 (not by choice)
    Posts
    6

    Re: help converting numbers with dashes

    It worked beautifully, thanks for your help

+ 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