excel2007怎样添加选择下拉菜单
2017-06-07
相关话题
Excel中经常需要使用到下拉菜单为用户提供选择的便利,下拉菜单具体该如何添加呢?接下来是小编为大家带来的excel2007添加下拉菜单的方法,不懂的朋友请多多学习吧。
excel2007添加选择下拉菜单的方法
1:这个表中,左边为省份和对应的城市列表,右边是联动下拉列表。就是省份选择为江苏、浙江的时候,城市只能选择对应省份的。

2:首先将江苏省城市的区域单元定义为“江苏”
3:选择江苏列的所有内容

4:点击 公式——定义的名称——根据所选内容创建

5:弹出的对话框中,默认选择首行,确定

6:这时再选择 南京到镇江区域时,顶上就有了江苏这个名称

7:同样方法定义好浙江的城市

8:现在用数据有效性建立省份下面单元格的下拉列表
点击 数据——数据工具——数据有效性

9:弹出框中,设置下面的允许选择“序列”

10:来源选择A1:B1,就是江苏和浙江两个格子。确定

11:效果是这样的

12:关键性的来了。
城市下面的单元格同样选择数据有效性,允许下面同样选择序列。
关键是这个“来源”怎么办?

13:来源中输入
=indirect(D2),注意,D2不要加$号,不需要绝对引用。
indirect函数的作用是通过D2单元格的值,找到相应的区域。
比如“江苏”,它就会找到定义为“江苏”的单元格区域。前面为什么要定义区域的名称,道理就在这里。
点击确定

14:效果就是这样的。

15:将做好的单元格复制粘贴到下面的其他单元格,同样有效。省份选择浙江,那么城市的下拉列表中对应的就都是浙江的城市了。
就这么简单!

猜你感兴趣:
1.excel2007设置下拉选择框的方法
2.excel2007中如何添加下拉菜单
3.excel2007怎么设置下拉菜单颜色
4.excel2007添加下拉菜单的方法
5.excel2007表格如何设置下拉选项