+ Reply to Thread
Results 1 to 8 of 8

Sorting text and numbers

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    Wigan UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Sorting text and numbers

    Need a formula to sort text and numbers in one column the original was in alphabetical order and when I sorted to a register order insted of 1.2 3 ,4,5 etc I get 1,10,100
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Sorting text and numbers

    I have a solution with supporting column. Paste this formula in F column and sort by Column F

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sorting text and numbers

    See if this helps you.

    Sorting by column F.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Sorting text and numbers

    Hi Fottis1991, Can you explain how is that lookup function working?

  5. #5
    Registered User
    Join Date
    11-02-2012
    Location
    Wigan UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Sorting text and numbers

    Sorry Fottis that formula is flawed it should read
    13A all though but your formula does not read this .

    ORRL/13A/1
    ORRL/13A/10
    ORRL/13A/100
    ORRL/13A/101
    ORRL/13A/102

  6. #6
    Registered User
    Join Date
    11-02-2012
    Location
    Wigan UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Sorting text and numbers

    Iam looking for

    ORRL/13A/1
    ORRL/13A/2
    ORRL/13A/3
    ORRL/13A/4
    ORRL/13A/5
    etc ETC
    instead of
    ORRL/13A/1
    ORRL/13A/10
    ORRL/13A/100
    ORRL/13A/101
    ORRL/13A/102
    when sorted

  7. #7
    Registered User
    Join Date
    11-02-2012
    Location
    Wigan UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Sorting text and numbers

    My apologies the formula does work as there were multiple registers I had to insert a row break after each register and it sorted just the one register indidually when highlighted thanks for your help.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Sorting text and numbers

    just FYI, Fotis's formulas are almost never flawed, and if they dont work, it is most often because an inaccurate discrition was given, or the formula itself was applied incorrectly
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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