+ Reply to Thread
Results 1 to 19 of 19

Problems converting text to numbers

  1. #1
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Problems converting text to numbers

    Hi all,

    Got stuck here. I try to convert the text formated numbers to numbers. When I try to convert it to numbers the three last digits changes to 000. I dont know why and hope for some assistance here.

    Please see attached file.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Problems converting text to numbers

    Because there is a maximum of 15 digits. It is unlikely that these numbers will be involved in mathematical calculations and therefore should be stored as text.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    Excel has a 15 digit limitation when it comes to numbers, and that after 15 digits, it simply replaces everything with 0's. So... Are these numbers, or "composite" codes? If so, you should be able to split them and use the components as numbers
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,693

    Re: Problems converting text to numbers

    Excel has a built-in precision limit of 15 significant digits. Your numbers have 18 so the last three digits are lost converting to numeric.

    Are you really dealing with numbers in the quadrillions, or is this some kind of serial number? Do you need to do arithmetic on them? If not, you are better off leaving them as text, depending on what operations you need to perform.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Problems converting text to numbers

    Hi,

    Thanks for your answers. It愀 just whats in my bank accounts...

    I have about 14 K of rows where i need to compare one column with another. I need to count how many is in one of the columns but not in the other. I惻l figure something out now that i know about the limitations. When i first made the count it looked really weird but now i understand why. Thanks!

    /Masun

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    If you have bank accounts with balances containing 18 digits (even in SEK) that makes you VERY wealthy.... Friend... But I guess it the account numbers... not their balance.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Problems converting text to numbers

    Thank you for the feedback!

  8. #8
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Problems converting text to numbers

    Glenn,

    damn...i forgot to write that it was the balance....which made that joke even more bad...

    Its a serial number of some kind...

    Thanks again for sharing your knowledge!

    /Masun

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    What a shame... There was me on the Ryanair site, booking a cheap flight, too....

    Thanks for the Reputation. Appreciated!

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,693

    Re: Problems converting text to numbers

    I don't understand if you solved your problem....it sounds like you can leave it as text and still do what you need to do.

  11. #11
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Problems converting text to numbers

    Hi,

    I solved it. But i guess there is a way without the helper columns i added. In my data set only the last 7 digits are unique. I made three new columns, two with RIGHT function and the third with COUNTIFS. See attached file. How would a better solution look like?
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    Hi. It depends what you want to see. You could use conditional formatting...
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Problems converting text to numbers

    Hi,

    Conditional formatting is one way. Is there a way to do it without the helper columns? Just one column with the results?

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    In your example, this works...
    =RIGHT(A2,7)=RIGHT(C2,7)

  15. #15
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Problems converting text to numbers

    Hi,

    I am not sure I am following here. That compares row by row? After the first mismatch there will alywas be mismatches...I want to know which numbers in A that do not exist in C. Or did i misunderstand you now?

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    Ignore this post of mine. Head not working...
    Last edited by Glenn Kennedy; 04-23-2015 at 05:04 AM.

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    In your example (whether intentionally or otherwise), the match for column A was always in the same row in column C. In those circumstances, the formula I suggested does work. However, i guess that's a very artificial situation. Something else is needed. So, why not just use the entire 18 digit number (as text). The green cells show the simple situtation as in your example (same rows). However the tan and pink cells show that this works, even when the matching values are NOT in the same row.
    Attached Files Attached Files

  18. #18
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Problems converting text to numbers

    Hi,

    Perfect. Thanks!

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Problems converting text to numbers

    You're welcome...

+ 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. Excel 2007 : Formatting problems upon converting to text
    By rockymountaincyclery in forum Excel General
    Replies: 1
    Last Post: 06-10-2012, 08:48 AM
  2. Converting text numbers into real numbers
    By vheying in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-28-2011, 09:17 AM
  3. Excel 2007 : converting to text file problems
    By ARRR in forum Excel General
    Replies: 7
    Last Post: 12-17-2010, 08:51 AM
  4. problems converting imported numbers to text.
    By mum2twins in forum Excel General
    Replies: 2
    Last Post: 06-10-2009, 01:54 AM
  5. [SOLVED] Converting numbers formatted as text to numbers
    By Bill in forum Excel General
    Replies: 1
    Last Post: 07-19-2005, 03:05 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