+ Reply to Thread
Results 1 to 6 of 6

Sorting a dropdown list

  1. #1
    Registered User
    Join Date
    04-15-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Sorting a dropdown list

    Is there a way to sort a drop down list that I made? It would be even better if I could give the option to leave in the original order or sort alpha.
    I googled as well as searched the forums and could not find anything.
    Thanks in advance!

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Sorting a dropdown list

    If it is a data validation list sort the source list.
    To keep the original as well as sorted list numbered the original list list (A column with s. No and the other data).

    Sort on S.No, No, to get the original or on data to sort alpha (select both column)

    Thanks

    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Sorting a dropdown list

    Hi mike,

    LIke this? http://www.homeandlearn.co.uk/excel2...l2007s3p1.html

    If you are using the list for a dropdown validation, I'd copy the sorted list ot an out-of-the-way range and just point your validation list to it.

    Maybe a better answer is that you sort it before you drop it down?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    04-15-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Sorting a dropdown list

    I thought I may have to sort it first...

    I need to keep the original data in its order, but wanted an option on the other worksheet to sort alpha if desired. Maybe I'll just mirror the data to anther range, sort alpha, then list that.

    If that is what I do, can I make it add to and resort the list range if I add a value to the original list?

    EDIT:

    And it seems if I mirror it to another column, I can't sort it at all. Am I doing something wrong? i.e. in L7 I put "=A7", then copied down the line.
    Last edited by MikeFike; 04-16-2011 at 02:58 PM.

  5. #5
    Registered User
    Join Date
    04-15-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Sorting a dropdown list

    Quote Originally Posted by mahju View Post
    If it is a data validation list sort the source list.
    To keep the original as well as sorted list numbered the original list list (A column with s. No and the other data).

    Sort on S.No, No, to get the original or on data to sort alpha (select both column)

    Thanks

    Regards
    This sounds like it might be what I want, but I'm not quite sure at all what you mean.
    Attached is an example of where I am. I can't sort the mirrored list.
    Attached Files Attached Files

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Sorting a dropdown list

    Hi,

    I've always copied the list to another column (I've seen some worksheets where they have a whole sheet of these sorted dropdown lists they use on other sheets) and deleted dups in that column and then sorted it.

    If your list is going to grow then a short macro that does the copy and paste and delete dups and sorts may be in order.

    You should also look at Named Ranges for your dropdown list. This makes the formula easier in the Validation and it can also then grow the list.

    Look here for named range. http://www.contextures.com/xlDataVal01.html

+ 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