Dependent List in Excel

前端 未结 2 1446

My question is , in excel when we create a dependent dropdown we write the formula for the other dropdown dependent on the first one. For example if USA is selected in first

相关标签:
2条回答
  • 2020-12-22 09:15

    Consider the following,

            

    The data validation lists in A2:A10 are based on a List with a Source: of,

    =$AA$2:$AA$5
    

    The data validation lists in B2:B10 are based on a List with a Source: of,

    =INDEX($AB$2:$AE$6, 0, MATCH($A2, $AB$1:$AE$1, 0))
    

    sample workbook

    0 讨论(0)
  • 2020-12-22 09:31

    I've written a couple of posts on this, that have a slight advantage over Jeeped's answer in that mine gets rid of any blank items at the bottom of the DropDown list, and also stop the user from subsequently making invalid changes to the 'upstream' dropdown. The disadvantage is that mine is more complicated. See the following:

    • http://chandoo.org/wp/2014/02/13/dynamic-cascading-dropdowns-that-reset/
    • http://chandoo.org/wp/2014/02/25/robust-dynamic-cascading-dropdowns-without-vba/
    0 讨论(0)
提交回复
热议问题