+ Reply to Thread
Results 1 to 6 of 6

Data Validation Relations

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Data Validation Relations

    Hi,

    I have two columns with following Data Validation Settings;
    Column A is named "BID" and allowed data entries are from list "YES" or "NO"
    Column B is named "STATUS" where I have allowed data entries of "WON", "PENDING", "LOST"

    I want the Column B entry be available only if Column A entry is "YES" that is Column B should be locked when Column A data says "NO".

    How can this be done?

    Thank you,

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Validation Relations

    You could use Dependent Data Validations with nothing in the "No" List. I have attached an example. You could have the named lists on another sheet if you like. Here's a link that explains Dependent D.V.
    http://www.contextures.com/xlDataVal02.html

    Does this work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Data Validation Relations

    Hi,
    One option would be to put the following formula in the Data Validation List option

    Please Login or Register  to view this content.
    where D1:D3 contains your 'Won, Pending or Lost' labels.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    05-13-2010
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Data Validation Relations

    Thank you for your answers, they were really helpful!

    I have one more additional question. In your resolutions, if user FIRST chooses "YES" in "bid" Column he can choose "Won" "Lost" "Pending" in "status" column. But is it able to link the contents of the cells reciprocally so that if a user after entering "YES" and "Won" changes the bid column to be "NO" the "status" column would automatically clear its contents?

    Thank you,

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Validation Relations

    That requires some code. Right click on the tab and paste this code in the window that opens up (VBA Editor).
    Please Login or Register  to view this content.
    This assumes your Bid Cell is A4 and your Status Cell is B4. Change to match your spreadsheet. Does that work for you?
    Last edited by ChemistB; 05-13-2010 at 02:16 PM.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Data Validation Relations

    Hi,

    Yes, just add the following WorkSheet Change event. I named the A1 cell 'YesNo' hence the reference in the macro.

    Please Login or Register  to view this content.
    Rgds

+ 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