+ Reply to Thread
Results 1 to 8 of 8

A Drop Down List That Reduces After Every Selection

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    A Drop Down List That Reduces After Every Selection

    Hi,

    I am having a problem figuring out how to create a drop down list that reduces after every selection. I am trying to create a spreadsheet that records individual players selections of team names. The team names cannot be selected again until all the team names have been used.

    I have created the drop down list using Data > Validation > List > the list itself, but I can't figure out how to make the next selection reduce.

    I have browsed the forum site and found that I can use the OFFSET function with a nested COUNTA function, but all I get in the output is ####.

    Do I have to use the formula in the Data > Validation > List dialogue box and use a name for the team names?

    I am using Excel 2003.

    Thanks for any help I can get.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: A Drop Down List That Reduces After Every Selection

    hi red61, welcome to the forum. i have attached the worksheet for you. first, do up your list for the drop down. mine is in A1:A6. then i did an array formula in B1:B6.
    =INDEX($A$1:$A$6,SMALL(IF(ISNA(MATCH($A$1:$A$6,$E$1:$E$6,0)),ROW($A$1:$A$6)-ROW($A$1)+1),ROWS(B$1:B1)))
    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you might get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    this list will shorten when the user selects 1 of them for the dropdown. but my drop down needs to reduce whenever a selection is made. so i did a dynamic range using INDEX. OFFSET is an alternative. my formula for the Named Range is:
    =$B$1:INDEX($B$1:$B$6,COUNTA($B$1:$B$6)-COUNTA($E$1:$E$6))

    i placed that inside the Named Range & called it DRange. lastly, i did the data validation in E1:E6. i did a screenshot on how you should put that in
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: A Drop Down List That Reduces After Every Selection

    Here is another way, without the errors in the drop-downs

    See Sheet1

    List 1 in the Lookup sheet is dynamic, add to it as you need
    If you delete something in List 1, either sort the list, or move the remaining data up. (Or fill with something else.)

    Don't leave blanks
    Attached Files Attached Files
    Last edited by Marcol; 06-22-2013 at 07:31 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    06-20-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Wink Re: A Drop Down List That Reduces After Every Selection

    Hi benishiryo,

    Thank you very much for your response and your warm welcome.

    I have been studying hard to understand the formulas and modify them, but as I have been awake for 19 hours and I've been at work all day I don't mind admitting that I'm struggling. I have entered the formulas as you suggested and so far I can't even get the cells to have the correct validation on them. I can understand how the formulas work though; I think there's a problem with my referencing so I included the file I've been working on, you can see my work so far on Sheet 2.

    Yours Gratefully,

    red61
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A Drop Down List That Reduces After Every Selection

    I'm not sure where you want the drop down lists but you can try this on your Sheet1 to see how it works.

    Enter this array formula** in B1:

    =LOOKUP("zzz",CHOOSE({1,2},"",INDEX(A:A,SMALL(IF(COUNTIF(E$1:E$6,A$1:A$6)=0,ROW(A$1:A$6)),ROWS(B$1:B1)))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down to B6.

    Clear the validation that is currently applied to the range E1:E6.

    Now, apply this validation

    Select the range E1:E6
    Data>Validation
    Allow: List
    Source: =OFFSET(B$1,,,COUNTIF(B$1:B$6,"?*"))
    OK out

    Try it out!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    06-20-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: A Drop Down List That Reduces After Every Selection

    Hi Tony,

    Thanks for your advice. I tried to enter the LOOKUP formula you suggested and I modified it myself as shown in Sheet2:
    =LOOKUP("AA$3:AA$22",CHOOSE({1,2},"",INDEX(AA:AA,SMALL(IF(COUNTIF(C$3:C$41,AA$3:AA$22)=0,ROW(AA$3:AA$22)),ROWS(AB$3:AB3)))))

    I keep getting the response:
    =LOOKUP("AA$3:AA$22",CHOOSE({1,2}))

    I don't understand this formula at all. If you could please take a look at Sheet2 you will see what I am tying to achive. It is probably really simple to all the Spreadsheet wizards out there, but to a novice like myself this is really difficult!!

    Thanks again,

    red61
    Last edited by jeffreybrown; 06-23-2013 at 09:25 AM. Reason: No need for unnecessary quotes...Thanks.

  7. #7
    Registered User
    Join Date
    06-20-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Cool Re: A Drop Down List That Reduces After Every Selection

    Hi Marcol,

    Thank you very much for your interpretation of my needs and your example was very simple to modify and works!

    I am using this sheet to track a game of Killer for the BPL next season. I can send you a copy of the final sheet if you like?

    Regards,

    red61
    Last edited by jeffreybrown; 06-23-2013 at 09:25 AM. Reason: No need for unnecessary quotes...Thanks.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A Drop Down List That Reduces After Every Selection

    Ok, enter this array formula** on Sheet2 in cell AB3. Don't change anything. Enter it exactly as shown.

    =LOOKUP("zzz",CHOOSE({1,2},"",INDEX(AA:AA,SMALL(IF(COUNTIF(C$3:C$41,AA$3:AA$22)=0,ROW(AA$3:AA$22)),ROWS(AB$3:AB3)))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Then, as the source for the drop down list use:

    =OFFSET(AB$3,,,COUNTIF(AB$3:AB$22,"?*"))

    I still don't quite understand how you intend to use this because where you seem to want the drop downs there are more cells then available selections in the drop down 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