+ Reply to Thread
Results 1 to 5 of 5

Alphanumeric sorting

Hybrid View

  1. #1
    Registered User
    Join Date
    10-16-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Alphanumeric sorting

    Hi,

    I am trying to sort data using a column that contains alphanumeric data.

    Is there a way to do this?

    I have attached an example of how far I have got...

    Any help would be appreciated,

    Matt

    http://www.box.net/shared/3jidahixs7ic9eslqyvi

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Alphanumeric sorting - can it be done?

    Can I suggest that you add a look-up table somewhere in your workbook with the possible values that could appear in your level column and the order you want them to appear in, you can then use a VLOOKUP to put these values next to the existing column and sort on that.

    As the order of your levels seems to have no coherent pattern I don't see any other way you can do this.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-16-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Alphanumeric sorting - can it be done?

    Quote Originally Posted by Andrew-R View Post
    Can I suggest that you add a look-up table somewhere in your workbook with the possible values that could appear in your level column and the order you want them to appear in, you can then use a VLOOKUP to put these values next to the existing column and sort on that.

    As the order of your levels seems to have no coherent pattern I don't see any other way you can do this.
    Hi,
    Thank you for your reply...I have added values for VLookUP to use but am not sure about how to use it!
    Any help would be welcomed!

    http://www.box.net/shared/ptju5fxicaq8j0uexm6u

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Alphanumeric sorting - can it be done?

    The VLOOKUP formula is in the attachment to my previous post, basically the format is =VLOOKUP(value to be found, range to search, column number to return, FALSE) the final FALSE just says you want exact matches, not closest matches.

    I've enclosed it in an IFERROR statement, so that if it doesn't find a match it returns a values 1 greater than the maximum number of specified values, so unmatched levels will be sorted to the end.

  5. #5
    Registered User
    Join Date
    10-16-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Alphanumeric sorting - can it be done?

    Quote Originally Posted by Andrew-R View Post
    The VLOOKUP formula is in the attachment to my previous post, basically the format is =VLOOKUP(value to be found, range to search, column number to return, FALSE) the final FALSE just says you want exact matches, not closest matches.

    I've enclosed it in an IFERROR statement, so that if it doesn't find a match it returns a values 1 greater than the maximum number of specified values, so unmatched levels will be sorted to the end.

    Hi Andrew,

    Thank you very much, that does exactly what I was after.
    All the best,
    Matt

+ 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