+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    10-21-2009
    Location
    Fairfax,Virginia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Post Sorting VIN numbers.

    Hello and thanks for viewing.

    I have a bunch of excel spreadsheets full of car VIN numbers and they were all entered manually. They are all supposed to be 17 characters long, but sometimes they are mistyped and end up being less or more than 17. I cant just sort ascending or filter because its not a visual problem. they all look different because of the different numbers and stuff.

    Can someone please help me find a formula I can use to count each and every VIN in the column and sort them.

    Thanks again for viewing.


    PS. using Excel 2003

  2. #2
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,605

    Re: Help sorting VIN numbers.

    How do you want the irregular VIN numbers handled?
    ...please give some examples.

    Also, can we assume that VIN "numbers" are actually alpha-numeric?
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    10-21-2009
    Location
    Fairfax,Virginia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Cool Re: Help sorting VIN numbers.

    3D7MX48C16G150213
    2A8HR44E69R516378
    1D4HB58236F129150
    2G2WP5527811742<--- not enough characters.
    1B3HB28BX8D697763
    2C4GM68475R368010
    5GAET13M472141 <-wrong
    3C8FY68BX5T536569


    If I can I would like them to be sorted into an asceding/descending order. I just need a count on each cell in the column making sure they are 17 characters long.

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Help sorting VIN numbers.

    perhaps in another column dragged down
    =REPT("#",17-LEN(A1))&A1 then sort by that column
    Last edited by martindwilson; 10-21-2009 at 12:37 PM.
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    10-21-2009
    Location
    Fairfax,Virginia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sorting VIN numbers.

    Im working with colum j2 - j25 what would I put the formula in as?
    =REPT("#",17-LEN(j2))&j25

  6. #6
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Sorting VIN numbers.

    =REPT("#",17-LEN(j2))&j2 in say k2 then drag down
    Attached Files Attached Files
    Last edited by martindwilson; 10-21-2009 at 06:14 PM.
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0