+ Reply to Thread
Results 1 to 11 of 11

Convert Text to Number - Large Database

  1. #1
    Registered User
    Join Date
    08-30-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    7

    Convert Text to Number - Large Database

    Hello All,

    I need help! I've researched everyway to convert text t numbers. I'm running a database of inventory numbers. The format of the numbers are:

    ####-##-###-####

    I have 2000+ numbers is coloumn B.

    There are a lot of sets of numbers that are still text! It's highly annoying and I need to analyze the data in Access.

    I tried the paste special advice and the 3 ways microsoft suggests. I have a feeling its not working because of the required format that I need.

    I need to do this project tonight!

    Background: these are imported numbers, I had to combine other excel databases... By the way, is their an easier way to combine excel sheets into 1?


    THANKS SO MUCH!!
    Last edited by supplychain.dan; 08-30-2009 at 05:56 PM. Reason: give thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Convert Text to Number - Large Database

    Assuming you want the numeric value of the number sans dashes,

    =substitute(a1, "-", "") + 0
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-30-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Convert Text to Number - Large Database

    No, there are numbers there like

    1234-01-123-1234

    like one of the rows has:

    1234 01 123 1234 as text

    and I need to convert it to it shows as:

    1234-01-123-1234 as a number

    I'd say there are a 500 mixed over the database

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Convert Text to Number - Large Database

    1234 01 123 1234 as text

    and I need to convert it to it shows as:

    1234-01-123-1234 as a number
    =substitute(a1, " ", "") + 0 and format as ####-##-###-####

  5. #5
    Registered User
    Join Date
    08-30-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Convert Text to Number - Large Database

    Sorry, I'm not sure how that's going to fix it...

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Convert Text to Number - Large Database

    It corrects your example, Dan.

    If your example doesn't encompass the problem, post a workbook.

  7. #7
    Registered User
    Join Date
    08-30-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Convert Text to Number - Large Database

    Ok that works for some of them, theres a lot of inconsistancy...

    Theres some stored as text with "-" in between and without.. then there are some inventory numbers that have letters and less numbers in them..

    How do I correct all 2,000 numbers?

    I'd love to post it but I can't...

  8. #8
    Registered User
    Join Date
    08-30-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Convert Text to Number - Large Database

    I think i got it....

    =IFERROR(SUBSTITUTE(C5,"-","")+0,IFERROR(SUBSTITUTE(C5," ","")+0,C5))

  9. #9
    Registered User
    Join Date
    08-30-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Convert Text to Number - Large Database

    Well, now I have 2 columns with the same essential data.

    How do I delete the referring column without messing up the formula that fixed it?

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Convert Text to Number - Large Database

    If I understand you question, copy the column with the formulas, and paste special over itself as values, then delete the original column.

    Or, copy the column with the formulas, and paste special over the original data as values, then delete the formula column.

  11. #11
    Registered User
    Join Date
    08-30-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Convert Text to Number - Large Database

    That worked! 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