+ Reply to Thread
Results 1 to 4 of 4

Sort The list of items by Alpha / numeric in their proper sequential order

Hybrid View

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    United States
    MS-Off Ver
    Mac Excel 2011
    Posts
    64

    Sort The list of items by Alpha / numeric in their proper sequential order

    I am having trouble sorting the following item. If I start our with P1,it will go Form Rev.1-Template.xlsxto P11 instead of P2,P3, and vice versa.

  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: Sort The list of items by Alpha / numeric in their proper sequential order

    You need to pad the numbers out to constant length, e.g., change P1 to P01, for sorting. Or you could use some formulas:

           --A-- ---B--- -C-- -----D------ -E-- ---F--- -G-- -----H----- -I-- --J--- --K---
       1   PANEL  OPEN        OK TO CLOSED      CLOSED       FINAL INSP.                   
       2         Initial Date   Initial    Date Initial Date   Initial   Date Letter Number
       3   P1                                                                 P           1
       4   P2                                                                 P           2
       5   D11                                                                D          11
       6   P31                                                                P          31
       7   P23                                                                P          23
       8   D2                                                                 D           2
       9   P27                                                                P          27
      10   P30                                                                P          30
    J3 and copy down, =LEFT(A3)

    K3 and copy down, =--MID(A3, 2, 3)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sort The list of items by Alpha / numeric in their proper sequential order

    or use since you only have one leading alpha
    =LEFT(A3)&TEXT(RIGHT(A3,LEN(A3)-1),"000")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    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

  4. #4
    Registered User
    Join Date
    11-24-2012
    Location
    United States
    MS-Off Ver
    Mac Excel 2011
    Posts
    64

    Re: Sort The list of items by Alpha / numeric in their proper sequential order

    @MartinDwilson it worked. I remove two of the zero's and set a custom filter A001,Z999. This sorts them in their sequential 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