+ Reply to Thread
Results 1 to 5 of 5

different long numbers formatted as text are considered duplicates

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    2

    different long numbers formatted as text are considered duplicates

    Hello

    I have an issue with long numbers (16 digits). To display them correctly in excel I formatted the cells as text. This part works fine, but now for some reason conditional formatting marks different numbers as duplicates
    In my case 3081281170122602 and 3081281170122601 are considered as duplicates by excel.
    Please see the file attached.

    Any idea how to get around this issue?

    Thanks in advance
    Peter

    duplikaat.xlsx

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,476

    Re: different long numbers formatted as text are considered duplicates

    I'm not sure why Excel would do this, but I expect you are up against the 15 digit limit for numbers. For whatever reason, during the test for duplicates, these "numbers stored as text" are getting converted to actual numbers, and the 16th digit gets lost. Since the sample values you give are identical to 15 digits, they get flagged as duplicates.

    I'm not sure what a suitable workaround would be. My first thought is to add a character to the beginning or end of each number string so that Excel cannot convert the text string to a number. 3081281170122602a and 3081281170122601a are correctly seen as not duplicates.

    Maybe given a little more time, someone will suggest another possible solution.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: different long numbers formatted as text are considered duplicates

    I think that I figured out a way to get around the 15 digit limitation. I created a helper column F and a VLOOKKUP TABLE that converted the last digit to an alpha character and then entered this formula in F3 and copied down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The conditional formatting was created by selecting column C and using this formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This does not change the original data in any way.

    The helper column can be hidden.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    01-09-2014
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: different long numbers formatted as text are considered duplicates

    Thanks

    Adding a character to the end of the string works fine for my needs

    Peter

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: different long numbers formatted as text are considered duplicates

    Good!

    Thanks for the feedback.

+ 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. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM
  2. How to identify duplicates between very long numbers
    By armor1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 12:47 PM
  3. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  4. Numbers formatted as text
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 05-20-2008, 09:02 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