• Interdependent Data Validation (2003)

    • This topic has 7 replies, 3 voices, and was last updated 17 years ago.
    Author
    Topic
    #450781

    Is it possible to have successive data validation lists tailor to values chosen in previous data validation cells? I have attached a workbook that has a table of corresponding data in A2:C43. A VLOOKUP won’t work because the values aren’t unique.

    For an example in the attachment, if the North America Region is selected, I want the data validation list to change to only the corresponding North America functions according to A2:C43. After that selection is made, I want the Position Data Validation list to tailor to available values for North America and Function that was chosen.

    Amy

    Viewing 1 reply thread
    Author
    Replies
    • #1108287
    • #1108289

      Hi Amy
      You might want to look at how I’ve set up the Africa sheet, and the named ranges on it, Also the formulae in columns E & F on sheet1. Finally the Data Validation in columns C & D of Sheet1.

      H.T.H.

      • #1108341

        Don,
        Thanks for churning this a bit. I follow what you have done. Thank you.

        Were the Europe, Extract and Criteria named ranges attempts to go into diffferent direction with the solution. Should they be disregarded?

        • #1108342

          [indent]


          Should they be disregarded?


          [/indent]
          Yes. I don’t believe they are needed.

          • #1108580

            Combining your approach and tools and tips from the site that Hans recommended, I am running into difficulty accommodating multi-word values and those with other symbols that named range syntax is restricted from accepting. Using the formula SUBSTITUTE(E2,” “,””) to rid the cell value of spaces so that it can be used as a named range works fine., but how do I add additional substitutes like the “&”,””?

            Can there be multiple old_text, new_text values in the formula?

            Amy

            • #1108582

              You can’t substitute multiple characters in one go, but you can nest functions:

              =SUBSTITUTE(SUBSTITUTE(E2," ",""),"&","")

              You can nest up to 7 levels deep.

            • #1108583

              Hello Amy
              I also have been considering that problem. The solution lies in yet another named range aliases are stored. The new approach would be along the following lines.

              To develop the validation list for “North America Functions”:

              • There would be a range named “N_A_Func” structured like the “AfricaFunction” range in the example I provided earlier..
              • There would be an “Aliases” range of two columns width that contains in one of the rows “North AmericaFunction” and “N_A_Func” in the first and second columns respectively.
              • Cell E4of Sheet1 in the example which I provided would then change to the following formula “=VLOOKUP(B4&”Function”,Aliases,2)
                [/list]H.T.H.
    Viewing 1 reply thread
    Reply To: Interdependent Data Validation (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: