+ Reply to Thread
Results 1 to 8 of 8

Arranging an alphanumeric string in alphabetical then chronological order

  1. #1
    Registered User
    Join Date
    10-31-2008
    Location
    Philippines
    Posts
    47

    Arranging an alphanumeric string in alphabetical then chronological order

    In Cell A1 i have a text string of "ABS9E8C2D" i want something is cell B1that will arrange the string in Alphabetical order for Letters, then increasing order for numbers "ABCDES289".

    This is just for fun and to exercise our excel minds.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Arranging an alphanumeric string in alphabetical then chronological order

    How much exercise will you get by having someone else provide the answer?
    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: Arranging an alphanumeric string in alphabetical then chronological order

    well if you really wanted text then "chronological order"
    the answer would probably be
    ABCDE982
    since the number 2 was probably the last digit entered in the cell lol
    "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
    10-31-2008
    Location
    Philippines
    Posts
    47

    Re: Arranging an alphanumeric string in alphabetical then chronological order

    yup that's correct martin. Been trying to solve this for a week now. I guess it's just not possible.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Arranging an alphanumeric string in alphabetical then chronological order

    You can certainly do it but it would IMO warrant a UDF.

    I still don't understand whether the result should be

    ABCDES289

    or

    ABSECD982

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Arranging an alphanumeric string in alphabetical then chronological order

    Quote Originally Posted by DonkeyOte View Post
    You can certainly do it but it would IMO warrant a UDF.
    I agree, UDF may be the ticket.
    I still don't understand whether the result should be
    ABCDES289
    or
    ABSECD982
    In the original question, he indicated the first option...all letters are ordered and all the numbers are ordered.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Arranging an alphanumeric string in alphabetical then chronological order

    Yes but in OP's last post he/she agreed with Martin's point re: listing in order of appearance, hence the question

    The UDF itself will be pretty straightforward regardless... if order of sequence simple case of either regex or iteration, if alphabetical etc then I would be inclined to split the string into an Array an pass the Array to Chip Pearson's array sorter function.

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

    Re: Arranging an alphanumeric string in alphabetical then chronological order

    nope he said chronological! and anyway i'm with shg on this one!

+ 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