+ Reply to Thread
Results 1 to 14 of 14

If Yes in one cell, Then automate No in two other cells

  1. #1
    Registered User
    Join Date
    03-24-2015
    Location
    Chatsworth, CA
    MS-Off Ver
    2010
    Posts
    12

    If Yes in one cell, Then automate No in two other cells

    Hi Im trying to create a IF condition where in a dropdown list if "Yes" is selected, the No is selected in two anther dropdown lists.

    The content of the dropdown list is coming from a lookup sheet. I'm getting error messages that the content is restricted but the Source is a selection within the lookup sheet. I wish I could post a picture but here the details:

    Data Validation criteria is a List: "Yes", "No", "NA."

    I have three locations with this data validation criteria that I would like to set a condition that if one of these locations is equal to "Yes" the other two location are equal to "No."

    I was trying to do this in Conditional Formatting but any help would be great.

    Thanks

  2. #2
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Re: If Yes in one cell, Then automate No in two other cells

    It looks like you might be trying to add the IF to the field with the drop down. It should go in the field where you want the "NO" to go.

    Let's say you have the drop down in cell H21 and you want the NO in cell J21. Your IF would look something like this:

    =IF(H21="Yes", "No","")

    It's really that simple. Just put that the two places you want the NO to appear

  3. #3
    Registered User
    Join Date
    03-24-2015
    Location
    Chatsworth, CA
    MS-Off Ver
    2010
    Posts
    12

    Re: If Yes in one cell, Then automate No in two other cells

    Thanks for the reply. I try that string but it didnt work. I get an error message that "The value is not valid. A user has restricted values that can be entered into the cell." I have a lookup sheet defining the validation list (Yes, No, N/A) and I need a way to get around this error. Is this possible, I don't know.

  4. #4
    Registered User
    Join Date
    03-24-2015
    Location
    Chatsworth, CA
    MS-Off Ver
    2010
    Posts
    12

    Re: If Yes in one cell, Then automate No in two other cells

    I tried changing the validation source to eliminate the lookup sheet but I don't know how to write a formula that would provide the functions for the use of 'Yes" in the validation source field.

  5. #5
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Re: If Yes in one cell, Then automate No in two other cells

    Can you attach your spreadsheet? I could add the function and re-attach it

  6. #6
    Registered User
    Join Date
    03-24-2015
    Location
    Chatsworth, CA
    MS-Off Ver
    2010
    Posts
    12

    Re: If Yes in one cell, Then automate No in two other cells

    Help. I don't see how to attach an attachment on this thread.

  7. #7
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Re: If Yes in one cell, Then automate No in two other cells

    Take a look just below the field where you type your words. On the right, click on "Go Advanced". That will allow you to attach the spreadsheet

  8. #8
    Registered User
    Join Date
    03-24-2015
    Location
    Chatsworth, CA
    MS-Off Ver
    2010
    Posts
    12

    Re: If Yes in one cell, Then automate No in two other cells

    See attachment, and reference validation list in section 2.3 Categorization.

    SmartForm2_Example.xlsx

  9. #9
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Re: If Yes in one cell, Then automate No in two other cells

    OK, I have it and I'm looking at it. I have some questions.

    It looks like your fields for YES are in cells D7:D10. Do you want your NOs in cells F7:F9?

  10. #10
    Registered User
    Join Date
    03-24-2015
    Location
    Chatsworth, CA
    MS-Off Ver
    2010
    Posts
    12

    Re: If Yes in one cell, Then automate No in two other cells

    The user should have a choice of "Yes" or "No" in cells D7:D10, and the same for cells F7:F9. My issue is; I want to restrict the ability to select Yes for more than one cell between D7:D10, and the same for F7:F9. Also, if "Yes" is selected in one cell the other cells should be set to No. I hope that helps.

    Thanks

  11. #11
    Registered User
    Join Date
    10-13-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    99

    Re: If Yes in one cell, Then automate No in two other cells

    I am thoroughly confused. So if the user selects YES in the cells D7:D10 you want the corresponding cells in F7:F9 to say NO? Do you really need the validation list in F7:F9? Sorry, I'm confused

  12. #12
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: If Yes in one cell, Then automate No in two other cells

    Quote Originally Posted by mmallard View Post
    The user should have a choice of "Yes" or "No" in cells D7:D10, and the same for cells F7:F9. My issue is; I want to restrict the ability to select Yes for more than one cell between D7:D10, and the same for F7:F9. Also, if "Yes" is selected in one cell the other cells should be set to No. I hope that helps.

    Thanks
    Here's what you are after. I only did the D Column. Go into data validation for each one and you will see what I did and you can recreate it for whatever other cells you need to restrict.

    Good Luck!!!




    If your original request is fulfilled please click the Thread Tools drop down box above your first post and choose solved.


    If you are happy with my help, please consider clicking the add reputation button in the lower left hand corner of this post.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    03-24-2015
    Location
    Chatsworth, CA
    MS-Off Ver
    2010
    Posts
    12

    Re: If Yes in one cell, Then automate No in two other cells

    It works, thanks so much

  14. #14
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: If Yes in one cell, Then automate No in two other cells

    Quote Originally Posted by mmallard View Post
    It works, thanks so much
    My pleasure.
    Thanks for the rep. points and thanks for the feedback.

+ 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. [SOLVED] How to automate filling a certain set of cells with the same value?
    By klvasquez in forum Excel General
    Replies: 3
    Last Post: 02-20-2014, 02:55 PM
  2. [SOLVED] Need advice on how to automate copying one cell into many cells in Excel 2010
    By shelbyjayIII in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2013, 05:48 PM
  3. Automate concatenation between single cell and multiple target cells
    By garnerseo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-16-2013, 07:15 AM
  4. [SOLVED] In copy/pasting cells to a new sheet cannot automate cells (1, x) based on user input
    By CEDarnell in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-05-2012, 06:08 PM
  5. automate unmerging of cells
    By JonPugh in forum Excel General
    Replies: 4
    Last Post: 07-19-2011, 07:15 AM

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