+ Reply to Thread
Results 1 to 2 of 2

Sorting one field with letters and numbers

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    Texas
    MS-Off Ver
    Excel 2016, 2019
    Posts
    53

    Sorting one field with letters and numbers

    Hello all,
    I have a table that I has room numbers that contain letters and numbers. A simply sort will not work because some field just contain numbers while others have Hyphens. I would like to sort them consecutively 142, 142-03, 142-09,

    Sample sort.xlsx

    Any assistance would be appreciated,

    Jaycee66

  2. #2
    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: Sorting one field with letters and numbers

    H Jayee66,

    Try this array formula

    =INDEX(B$2:$B$18,MATCH(SMALL(COUNTIF(B$2:$B$18,"<"&B$2:$B$18),ROWS(A$1:A1)),COUNTIF(B$2:$B$18,"<"&B$2:$B$18), 0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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

+ 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. [SOLVED] Sorting numbers and letters
    By Larry.LeBlanc@O in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2014, 05:42 PM
  2. Sorting numbers and letters
    By rockon0921 in forum Excel General
    Replies: 6
    Last Post: 04-21-2014, 03:15 AM
  3. Replies: 3
    Last Post: 01-29-2013, 07:06 PM
  4. sorting numbers with letters and dashes
    By IcantdoIt in forum Excel General
    Replies: 5
    Last Post: 08-21-2008, 09:57 AM
  5. [SOLVED] Sorting - cells containing numbers, numbers and letters
    By Gunny in forum Excel General
    Replies: 5
    Last Post: 07-15-2006, 08:30 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