Excel中的依赖列表 [英] Dependent List in Excel

查看:174
本文介绍了Excel中的依赖列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是,在我们创建一个依赖的下拉列表中,我们为第一个下拉列表写下另一个下拉列表的公式。例如,如果在第一列中选​​择美国,匹配的美国城市将被拉动,然后可以填充在数据验证列表中。



我知道如何将公式写入获取项目匹配标准。我的问题是如果我们有多个下拉列表。



例如,我们有100行,列A用于选择国家,然后在每个行旁边,我们都有下拉列表选择城市。



我需要为这些依赖的下拉列表写出100个公式,还有另一种方法来实现这一点?

解决方案

p>考虑以下内容,



< img src =https://i.stack.imgur.com/EO2XD.pngalt =dependent_list>



A2:A10基于来源的列表:

  = $ AA $ 2:$ AA $ 5 

B2中的数据验证列表:B10基于源列表:

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


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 col the matching City of USA will be pulled and then can be populated in a data validation list.

I know how to write formula to get the items matching criteria. My problem is what if we have multiple dropdowns .

For example we have 100 rows with column A for selecting Countries and then next to each of these we have dropdown for selecting City.

Do I need to write 100 formulas for these dependent dropdowns or there is another way around to achieve this?

解决方案

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

这篇关于Excel中的依赖列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆