+ Reply to Thread
Results 1 to 3 of 3

data validation list with an if statement (different problem than I've found online)

  1. #1
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    data validation list with an if statement (different problem than I've found online)

    For the sake of this example, cell C2 is the cell I want to fill out, and depending on the value of A2, i may or may not want to use data validation lists.

    If A2 is True, I want C2 to refer to a list, but if A2 is false, I want to make the cell open to any input. Is this possible? I've read through all of the tutorials on contextures and haven't found something quite like this.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: data validation list with an if statement (different problem than I've found online)

    The DV properties would allow you to make the LIST appear or disappear based on A2 being TRUE or not, but the ability to type anything into the cell, too, well that would either always be true, never be true using inbuilt functions. So even if A2 was false, if the DV settings were to allow free entry, they could do that at any time.

    However, all is not lost. You could employ a Conditional Formatting trick at the same time in C2. Using Conditional Formatting, you could test the values of A2 and C2 and HIDE the value in C2 if A2=true and C2 does not match an option from the DV list.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: data validation list with an if statement (different problem than I've found online)

    Thanks for the feedback.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. If statement with data validation list
    By scottkelley80 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2014, 11:55 AM
  2. [SOLVED] Data Validation - If Statement Problem
    By Ardiko in forum Excel General
    Replies: 7
    Last Post: 09-19-2012, 01:18 AM
  3. IF statement for data validation list
    By Lassie in forum Excel General
    Replies: 2
    Last Post: 01-01-2011, 11:27 PM
  4. Problem:Data validation using if statement in two workbooks
    By apoorvagala in forum Excel General
    Replies: 1
    Last Post: 05-25-2009, 03:12 AM
  5. Can a data validation list be used as part of if statement
    By mkmed in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2008, 03:01 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