EXCEL的多层下拉菜单 [英] Multiple layers of drop down menus for EXCEL

查看:193
本文介绍了EXCEL的多层下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要单元格A1是一个下拉菜单(我知道该怎么做),然后单元格B1是基于初始选择的下拉菜单。



示例:
如果我在A1中选择娱乐,我想要一个下拉菜单,让我选择电影,音乐,运动。
但是如果我在A1中选择食物,我想要一个乳品,蔬菜,水果,肉类等下拉菜单。



我知道基本的编码,但我主要是想使用Excel的功能。



谢谢! - Laura

解决方案

诀窍是使用间接功能。



教程



基本步骤是


  1. 在Excel中创建参考表

  2. 第二层菜单项的名称范围为第1层菜单项的值。

  3. 使用 =间接(第一层菜单的单元格)用于第二层菜单数据验证源。


I want cell A1 to be a drop down menu (which I know how to do), and then cell B1 to be a drop down menu based off that initial selection.

Example: If I select in A1 "Entertainment," in B1 I want a drop down menu that lets me select "Movies, Music, Sport". But if I select in A1 "Food," in B1 I want a drop down menu with "Dairy, Veggies, Fruit, Meat" etc.

I know basic coding, but I'm mostly looking to use Excel's capabilities.

Thanks! - Laura

解决方案

The trick is using indirect function.

Here is the tutorial.

The basic steps are

  1. Create a reference table in Excel
  2. Name range of the 2nd layer menu items as the value of 1st layer menu item.
  3. Use =indirect(cell of the first layer menu) for the 2nd layer menu data validation source.

这篇关于EXCEL的多层下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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