+ Reply to Thread
Results 1 to 9 of 9

How do I create user-friendly drop-down lists where you can select multiple options?

  1. #1
    Registered User
    Join Date
    08-08-2016
    Location
    washington dc
    MS-Off Ver
    8
    Posts
    5

    How do I create user-friendly drop-down lists where you can select multiple options?

    I know how to create drop-down lists, and how to create data validation drop-down lists where you can choose multiple answers. My issue is, I can't figure out how to create said lists where, if you accidentally choose a second answer, or the wrong second answer, it's possible to erase that second answer. Right now when I select a second (or third, or fourth, etc.) answer, I'm not able to delete it to go back to just having the single answer.
    So...
    if the drop-down list options are "a, b, c, and d," and I first choose "a," I currently have it set up so that I can then click back on the list, and choose another option so that I now have "a, b" in the cell (or a, d or a, c, etc). I can't delete "b" then, though, so I'm stuck with "a, b" in that cell.
    If I'm going to sell this to my coworkers as something they can use as a data tracking tool, it's got to be very user-friendly. Is there any way to get this to happen in a way that wouldn't require multiple steps and would just be as simple as deleting that second answer?
    Thanks much to anyone who can help assist this ignorant unpaid intern!

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: How do I create user-friendly drop-down lists where you can select multiple options?

    Can you upload an example of what you are working with?
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    08-08-2016
    Location
    washington dc
    MS-Off Ver
    8
    Posts
    5

    Post Re: How do I create user-friendly drop-down lists where you can select multiple options?

    Ok, here's an example doc. The cell I'm looking at is obviously A1. This is the code I'm working with, which allows me to select multiple choices, but does not allow me to delete any selections, which is why the cell block is currently stuck with three choices, "C, d, b"
    Attached Files Attached Files

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: How do I create user-friendly drop-down lists where you can select multiple options?

    That's because this comparison: InStr(1, xValue1, ", " & xValue2) OR InStr(1, xValue1, xValue2 & ",") is coming back True and the previous value is being written back into the cell.

    Looks like your logic, to prevent something like a, a, a, .... from happening is just backfiring here.

    Edit:

    Not only that, a user can't go into the cell and remove a single value from the list (like changing the value to c, d) because the data validation will stop them from pressing 'enter'. c, d is not in the list of approved values.
    Last edited by GeneralDisarray; 08-08-2016 at 02:44 PM.

  5. #5
    Registered User
    Join Date
    08-08-2016
    Location
    washington dc
    MS-Off Ver
    8
    Posts
    5

    Re: How do I create user-friendly drop-down lists where you can select multiple options?

    Thanks for the feedback! I guess what I'm trying to do is what you pointed out in your last statement: I'm trying to make it so you can remove a single value from the list. Would you have any recommendation on how to edit my code in order to do that? I'm kind of lost in the woods on this. I'm beginning to think it's not possible but if any easy suggestion jumps out at you please let me know. Thanks again!

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: How do I create user-friendly drop-down lists where you can select multiple options?

    You might try going a different way with it. See attached sheet. I identified a list of choices and named the range [VALID_OPTIONS] and the target cell is just named [THE_CELL].


    Code needed:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-08-2016
    Location
    washington dc
    MS-Off Ver
    8
    Posts
    5

    Re: How do I create user-friendly drop-down lists where you can select multiple options?

    Interesting. Thanks!

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: How do I create user-friendly drop-down lists where you can select multiple options?

    Or maybe this way
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  9. #9
    Registered User
    Join Date
    08-08-2016
    Location
    washington dc
    MS-Off Ver
    8
    Posts
    5

    Re: How do I create user-friendly drop-down lists where you can select multiple options?

    I'll take a look and see if I can make this work. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Select multiple options from drop down list
    By forestview in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2016, 01:42 PM
  2. Select multiple options from drop down list
    By nsprasad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-29-2015, 05:30 AM
  3. Populating multiple drop down lists with different options
    By achdeekay in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2013, 08:17 PM
  4. [SOLVED] How to create different drop down lists depending on user's response?
    By WillGe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2012, 08:26 AM
  5. Create a user-friendly log sheet
    By boom929 in forum Excel General
    Replies: 12
    Last Post: 05-26-2010, 10:12 PM
  6. Create lists with multiple choice options
    By Proejo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2007, 08:36 AM

Tags for this Thread

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