+ Reply to Thread
Results 1 to 9 of 9

Three lists, only one can be "yes"

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    37

    Three lists, only one can be "yes"

    Hi, I've tried to google this, but haven't got an answer, so I try here :-).

    I have three lists. All of them with the option "Yes" or "No". This is what I want:

    If one of them is "yes", then the two others should be turned to "no".
    The list option (yes/no) should be available at all times.
    I dont use VB.

    Example:

    List one is "yes"
    List two is "no"
    List three is "no"

    If I then want list three to be "yes", I should go to list three and choose "yes". The instance I choose "yes", the other two should go to "no".
    If I then want list two to be "yes", I shold go in list two and choose "yes", and the other lists should automaticly go to "no".
    Is this possible?

    Thanks for any advice!!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Three lists, only one can be "yes"

    Yes, but only with VB.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    37

    Re: Three lists, only one can be "yes"

    aahhh, sh**!

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Three lists, only one can be "yes"

    maybe not, are you averse to using a small reference table where you control what is yes or no? see attached...

    EDIT: you would have to control the yes or no with those three inputs.
    Attached Files Attached Files
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    05-22-2014
    Posts
    37

    Re: Three lists, only one can be "yes"

    Hi.

    I don't know if you got me right, but;
    I've edited your file, by makeing the Yes/No (in the "I" column) to lists. What I want is that there should never be more than one "yes" in the lists (area: I3:I5). And if you try to make two "yes"s, then the previous "yes" should automaticly turn to "no".
    Attached Files Attached Files

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Three lists, only one can be "yes"

    Yes, i know, that is the flaw i noted in mine, you'd have to control the yes/no in those cells but the rest of the lists would automatically pick up the yes and no from those three. I've been trying to do an if then statement that would say that if you pick yes for list 1, list 2 and list 3 will be no, then if you pick yes for list 2, list 1 and 3 would be no... etc. But haven't been able to work that out yet.
    Zbor has better skills than I and is probably right about the visual basic.
    If i can work it out i'll post it.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Three lists, only one can be "yes"

    Only VBA can trace your changes.

    Maybe to write position of yes. In that case other will be automatically no.

    Change B17 number
    Attached Files Attached Files

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Three lists, only one can be "yes"

    told you Zbor had better skills than I, so i "cheated" and adapted what he gave you a little with adding a dropdown selection and the changes flow through.

    EDIT: so if that suits your needs give the credit to Zbor for pulling the rabbit out of the hat.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-22-2014
    Posts
    37

    Re: Three lists, only one can be "yes"

    Thanks guys!
    It's not exactly what I was looking for, but a good workaround :-)
    Thanks again, for quick and good answers!!!

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Replies: 6
    Last Post: 01-26-2012, 10:02 PM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

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