+ Reply to Thread
Results 1 to 4 of 4

Data validation with multiple dependants?

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    11

    Data validation with multiple dependants?

    Hi,

    Is it possible to use data validation based on the prior result in more than one cell?

    Example:
    I have four types of pipes and all of them can be made out of either steel or copper.
    I would like to be able to pick a pipe dimension, from a list, based on the combination of type AND material. (Type and dimension are picked in different cells) Is this possible?

    In the attached file The orange cells are the dependants and the green is where I want my dimension to go. The different dimensions can be found in the "Data" tab

    (The texts are in Swedish, sorry about that)

    Thanks in advance
    //Jenny
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Data validation with multiple dependants?

    I'm getting a bit lost without all the swedish but as a simple example:
    in a blank sheet:
    enter:
    A1: 1
    A2: 2
    A3: 3
    B1: a
    B2: b
    then assign a named range "ab" to A1:A3 and in B3 apply data validation formula:
    =indirect(B1&B2)
    this will then give you data validation list linked to the named range of B1 and B2 together, in this case A1:A3.

  3. #3
    Registered User
    Join Date
    09-19-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Data validation with multiple dependants?

    Thank you!

    In the attached file you can see how I solved the problem (translated to English )

    That brings me to a new question; What if I needed to have spaces separating the different words in the list. For example "FlexibleTwin" needs to be "Flexible Twin" in the drop down list. Can I still use the INDIRECT funktion?
    I have been trying something like this: =INDIRECT((SUBSTITUTE(B19," ","")&B20)) It will not work, though.

    //Jenny
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Data validation with multiple dependants?

    I don't see why that wouldn't work, to go back to the simpler example:
    A1: 1
    A2: 2
    A3: 3
    B1: a b
    B2: c
    then assign a named range "abc" to A1:A3 and in B3 apply data validation formula:
    =indirect(substitute(B1&B2," ",""))

    That seems to work ok for me.

+ 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: 1
    Last Post: 03-19-2013, 07:03 PM
  2. Dependants Combo Box
    By kryt0n in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2010, 07:15 AM
  3. Display value in column 5 of a row if two dependants exist in row
    By iaineee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2008, 12:09 AM
  4. [SOLVED] Trace Dependants Not Working...
    By voyeurs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-04-2005, 11:00 AM
  5. [SOLVED] Trace Dependants
    By NICK in forum Excel General
    Replies: 0
    Last Post: 05-18-2005, 04:06 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