+ Reply to Thread
Results 1 to 9 of 9

Reversing a Dynamic Drop-Down List in Data Validation..

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Reversing a Dynamic Drop-Down List in Data Validation..

    Reversing a Dynamic Drop-Down List in Data Validation..I always use the OFFSET function to get a Dynamic List of Items in the regular Drop-down box..But I have a requirement where I need to use the Last Entry First as these options would be the most recent ones..So i have to keep them for Selection on the top..Regular Dynamic Validation formula[ =OFFSET($B$2,0,0,COUNTA($B:$B)-1,1) ]Revering the List..[ =OFFSET($B$2,COUNTA($B:$B)-ROW(),0) ]The only problem is to always reserve a Helper Column to store the Reversed List and then the same can be used in Data Validation?I would be happy if someone could help me by-pass this helper column and help me with a Dynamic as well as Reverse List..!

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning e4excel
    Quote Originally Posted by e4excel View Post
    I always use the OFFSET function to get a Dynamic List of Items in the regular Drop-down box..But I have a requirement where I need to use the Last Entry First as these options would be the most recent ones..
    There is no built in method to reverse the list in a data validation dropdown. The ideal method method would be to use a combobox from the Control Toolbox, as this can be rearranged in any order you please, and also has a "jump to" facility, so as you type the appropriate entry is selected.

    If you really need to use DV, the Debra Dalgleish has a workaround here that might help you.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Hey thanks for the link!

    Good Evening from my part of the World.But unfortuantely tha link does not have any example on Reversing the ListEx:123Dropdown should be321NOw this list not nly should be reversed but also Expanding...

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    try using named range instead.
    say your validation list is in b1:b10 define a name for it
    leave b1 empty then put your list in b2:b10
    when you want to ad a new one
    click on b2 /insert/shift cells down enter your new value
    this will now show at top of list and the named range will increase to b1:b11
    automatically

  5. #5
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Would explain again what I want?

    Due to some issues with the formatting the requirement was not conveyed properly..

    Lets say I have a list of numbers from 1 to 10 from A2:A11 then in Cell C2 I want 10 as the first option in the Dropdown

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    from the start put them in as 10,9,8.... down in cells a2:a11
    then name range a1:a11 lets say "mylist"
    in c2 data/validation/allow/list then enter
    =mylist
    and drop down in c2 will show blank followed bt 10,9,8......
    to add new value at top say number 11
    click on a2 insert/shift cells down and type 11 into a2
    now if you look at the named range "mylist" you will see it has expanded to a1:a12
    dropdown in c2 will now show blank followed by 11,10,9,8........
    so from now on just insert at a2 and the latest value will be at top of list
    Last edited by martindwilson; 12-15-2008 at 12:34 PM.

  7. #7
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Hope this explanation helps.

    Quote Originally Posted by martindwilson View Post
    from the start put them in as 10,9,8.... down in cells a2:a11
    then name range a1:a11 lets say "mylist"
    in c2 data/validation/allow/list then enter
    =mylist
    and drop down in c2 will show blank followed bt 10,9,8......
    to add new value at top say number 11
    click on a2 insert/shift cells down and type 11 into a2
    now if you look at the named range "mylist" you will see it has expanded to a1:a12
    dropdown in c2 will now show blank followed by 11,10,9,8........
    so from now on just insert at a2 and the latest value will be at top of list

    I cannot type them in a reverse order...as the entries are date based the most recent ones always go to the bottom or the last rows and therefore the design cannot be changed..

    I am well aware of using Name Defines...

    What I want is to avoid creating a reverse list and then use it for Data Validation

    Without changing the format, would be happy if someone could help me by-pass this extra column for storing the reverse list and directly get a Dynamic as well as Reverse List..which also expands in one formula...

    Hope this explanation helps.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    I cannot type them in a reverse order...as the entries are date based the most recent ones always go to the bottom or the last rows and therefore the design cannot be changed..
    why not?
    cant see the problem
    turn your existing list upsite down then carry on from there
    why do new ones have to go at bottom?
    you asked how to do it and that's how !!!!

  9. #9
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Martin not quite possible to change the order

    Quote Originally Posted by martindwilson View Post
    why not?
    cant see the problem
    turn your existing list upsite down then carry on from there
    why do new ones have to go at bottom?
    you asked how to do it and that's how !!!!
    I would like to reiterate that the order cannot be changed as the most recent entries go in the Last Rows however for all practical purposes the Dropdown should have the data of the most recent and thus the requirement to reverse the list.

+ 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