+ Reply to Thread
Results 1 to 2 of 2

Tell users how to sort 5 digit and 9 digit zipcodes correctly aft.

  1. #1

    Tell users how to sort 5 digit and 9 digit zipcodes correctly aft.

    After applying special format to column to accommodate 5 and 9 digit
    zipcodes, I was not able to sort by zipcode correctly. I added leading zeros
    to 4 digit zipcodes to make them 5 digit. My 5 digit zip codes appear before
    my 9 digit zip codes when I sort by ascending order.

  2. #2
    CLR
    Guest

    Re: Tell users how to sort 5 digit and 9 digit zipcodes correctly aft.

    Concatenate -0000 into your 5 diget numbers in a hellper column, with

    =IF(LEN(A1)>5,A1,A1&"-0000") then Copy > Pastespecial > Values
    this will give 11111-0000 for a 5 diget code of 11111.............

    then select both columns and sort on the new one.........then delete the new
    column if desired........

    Vaya con Dios,
    Chuck, CABGx3


    "[email protected]"
    <[email protected]@discussions.microsoft.com> wrote in message
    news:[email protected]...
    > After applying special format to column to accommodate 5 and 9 digit
    > zipcodes, I was not able to sort by zipcode correctly. I added leading

    zeros
    > to 4 digit zipcodes to make them 5 digit. My 5 digit zip codes appear

    before
    > my 9 digit zip codes when I sort by ascending order.




+ 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