+ Reply to Thread
Results 1 to 6 of 6

Data validation dependent on cell value

  1. #1
    Registered User
    Join Date
    11-18-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Data validation dependent on cell value

    I have created two data validations in columns A and B (Sheet2) by taking the unique values from columns A and B in Sheet1.

    The problem is that when you choose a value in column A, then you can choose ALL values from column B. I want the displayed
    values in the validation list in B to contain only the matching combinations, not all the values. That way you can't add an invalid
    combination of A and B. In sheet 1 all the possible, valid combinations are listed and in sheet 2 you add rows.

    I found the following to be very popular:

    Please Login or Register  to view this content.
    It can create the list I want, by changing 1:1 to 2:2, 3:3 etc. but you use x cells (as many as the combinations). How can I
    incorporate this in the validation list? That is, to put the above as a formula in the list.

    Is there another way to look into?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Data validation dependent on cell value

    Hi

    Take a look here.. Depanted validation Lists..

    http://www.contextures.com/xlDataVal02.html
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    11-18-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Data validation dependent on cell value

    My source data for the validation (in Sheet1) are in the form of rows. I have seen that method but it groups data
    in columns. This means that I have to create 30-40-50 or more named lists. If I had 3-4 groups it would make sense.

    If I can't find a solution I could do that through my macro and create automatically all the lists. But I suppose there
    is an easier solution.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Data validation dependent on cell value

    Perhaps one of our VBA Experts will be able to helps you but be sure that best way to describe your pronlem is to attach a small sample workbook.

  5. #5
    Registered User
    Join Date
    11-18-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Data validation dependent on cell value

    I am close to solving the problem but I have an issue with Named Ranges. How can I bypass the problem and use any name I want in the range?

  6. #6
    Registered User
    Join Date
    11-18-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Data validation dependent on cell value

    I have found the solution, which is kind of complicated but it works well with dynamic lists.

+ 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: 18
    Last Post: 09-18-2013, 10:29 AM
  2. Data Validation List - Dependent on Adjacent Cell - Value from Unsorted List
    By justforthis1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2013, 12:24 PM
  3. Replies: 5
    Last Post: 10-11-2012, 11:28 AM
  4. Replies: 2
    Last Post: 05-12-2011, 09:23 PM
  5. Dynamic/dependent data validation lists - reset second cell if first cell changed
    By gazza365 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2010, 06:59 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