+ Reply to Thread
Results 1 to 6 of 6

Order columns with text and numbers

  1. #1
    Registered User
    Join Date
    11-22-2018
    Location
    Roma,Italia
    MS-Off Ver
    2013
    Posts
    40

    Order columns with text and numbers

    Good morning
    in the file attached from A2 to B10 we have numbers and letters the purpose is to sort the numbers in ascending order and the letters in alphabetical order in column D
    without VBA
    Thanks for your attention
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Order columns with text and numbers

    Can there be duplicates? If so, do you want both of them returned?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Order columns with text and numbers

    You may need to replace commas with semi:colon

    Enter formula in D2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D
    1
    2 8 D 1
    3 C 3 2
    4 7 E 3
    5 10 2 4
    6 F A 5
    7 1 G 6
    8 5 H 7
    9 6 4 8
    10 B 9 9
    11 10
    12 A
    13 B
    14 C
    15 D
    16 E
    17 F
    18 G
    19 H
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    11-22-2018
    Location
    Roma,Italia
    MS-Off Ver
    2013
    Posts
    40

    Re: Order columns with text and numbers

    Thank you
    it works perfectly

  5. #5
    Registered User
    Join Date
    11-22-2018
    Location
    Roma,Italia
    MS-Off Ver
    2013
    Posts
    40

    Re: Order columns with text and numbers

    Good morning
    testing the proposed formula only works for the example posted since regardless of the letters it always returns the sequence A, B, etc
    I've lost some time and I've come to this solution that works properly

    =IFERROR(SMALL($A$2:$B$10,ROW(A1)),CHAR(AGGREGATE(15,6,((CODE($A$2:$B$10)>=65)*(CODE($A$2:$B$10)<=90))*CODE($A$2:$B$10),ROW(A1))))

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Order columns with text and numbers

    Do bear in mind that solutions offered are only as good as the sample provided. It's really important to make samples that are TRULY representative of your real data and not just a random sequence of 1-10 and A-J.

+ 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. Replies: 5
    Last Post: 03-24-2018, 06:29 PM
  2. separating text and numbers in cells in the same order
    By aganesan99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-09-2015, 08:38 AM
  3. Replies: 0
    Last Post: 03-19-2013, 12:23 AM
  4. [SOLVED] How do you apply the int() in VBA in order to convert numbers stored as text to numbers
    By djaurit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2012, 02:57 PM
  5. Changing Order of Text and Numbers in a Cell
    By drpaulmhine in forum Excel General
    Replies: 6
    Last Post: 06-12-2012, 07:02 PM
  6. [SOLVED] Matching numbers in columns in different order
    By CLUZADDER in forum Excel General
    Replies: 7
    Last Post: 04-06-2012, 09:34 AM
  7. [SOLVED] Sorting order - text and numbers
    By jmt in forum Excel General
    Replies: 2
    Last Post: 04-03-2005, 09:06 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