Drop-down lists are very useful data entry tools we see just about everywhere, and you can add custom drop-down lists to your own Excel worksheets. It’s easy and we’ll show you how.

下拉列表是非常有用的数据输入工具,我们随处可见,您可以将自定义下拉列表添加到自己的Excel工作表中。 这很容易,我们将向您展示如何操作。

Drop-down lists make it easier and more efficient to enter data into your spreadsheets. Simply click the arrow and select an option. You can add drop-down lists to cells in Excel containing options such as Yes and No, Male and Female, or any other custom list of options.

下拉列表使您可以更轻松,更有效地将数据输入电子表格。 只需单击箭头并选择一个选项。 您可以将下拉列表添加到包含选项(例如“是”和“否”,“男性”和“女性”)或任何其他自定义选项列表的Excel单元格中。

It’s easy to add a drop-down list to a cell in Excel, but the process is not intuitive. Drop-down lists are created using the Data Validation feature. We’re going to create a drop-down list with a selection of age ranges to show you how it’s done.

将下拉列表添加到Excel中的单元格很容易,但是过程并不直观。 使用数据验证功能创建下拉列表。 我们将创建一个包含年龄范围选择的下拉列表,以向您展示其效果。

To begin, enter the list of age ranges into sequential cells down a column or across a row. We entered our age ranges into cells A9 through A13 on the same worksheet, as shown below. You can also add your list of options to a different worksheet in the same workbook.

首先,将年龄范围列表输入到列中或行中的连续单元格中。 我们在同一工作表的A9到A13单元格中输入了年龄范围,如下所示。 您还可以将选项列表添加到同一工作簿中的其他工作表中。

Now, we’re going to name our range of cells to make it easier to add them to the drop-down list. To do this, select all the cells containing the drop-down list items and then enter a name for the cell range into the Name box above the grid. We named our cell range Age.

现在,我们将命名单元格的范围,以使其更轻松地添加到下拉列表中。 为此,选择包含下拉列表项的所有单元格,然后在网格上方的“名称”框中输入单元格范围的名称。 我们将细胞范围命名为Age。

Now, select the cell into which you want to add a drop-down list and click the “Data” tab.

现在,选择要在其中添加下拉列表的单元格,然后单击“数据”选项卡。

In the Data Tools section of the Data tab, click the “Data Validation” button.

在“数据”标签的“数据工具”部分中,单击“数据验证”按钮。

The Data Validation dialog box displays. On the Settings tab, select “List” from the Allow drop-down list (see, drop-down lists are everywhere!).

显示“数据验证”对话框。 在“设置”选项卡上,从“允许”下拉列表中选择“列表”(请参阅​​下拉列表无处不在!)。

Now, we’re going to use the name we assigned to the range of cells containing the options for our drop-down list. Enter =Age in the “Source” box (if you named your cell range something else, replace “Age” with that name). Make sure the “In-cell dropdown” box is checked.

现在,我们将使用分配给包含下拉列表选项的单元格区域的名称。 在“源”框中输入=Age (如果您将单元格范围命名为其他名称,请用该名称替换“ Age”)。 确保选中“ In-cell dropdown”框。

The “Ignore blank” check box is checked by default. This means that the user can select the cell and then deselect the cell without selecting an item. If you want to require the user to select an option from the drop-down list, uncheck the Ignore blank check box.

默认情况下,“忽略空白”复选框为选中状态。 这意味着用户可以选择单元格,然后取消选择单元格而无需选择项目。 如果要要求用户从下拉列表中选择一个选项,请取消选中“忽略空白”复选框。

You can add a popup message that displays when the cell containing the drop-down list is selected. To do this, click the “Input Message” tab on the Data Validation dialog box. Make sure the “Show input message when the cell is selected” box is checked. Enter a Title and an Input message and then click the “OK” button.

您可以添加一条弹出消息,在选择包含下拉列表的单元格时显示。 为此,请单击“数据验证”对话框上的“输入消息”选项卡。 确保选中“选中单元格时显示输入消息”框。 输入标题和输入消息,然后单击“确定”按钮。

When the cell containing the drop-down list is selected, you’ll see a down arrow button to the right of the cell. If you added an input message, it displays below the cell. The down arrow button only displays when the cell is selected.

选择包含下拉列表的单元格后,您将在该单元格的右侧看到一个向下箭头按钮。 如果添加了输入消息,它将显示在单元格下方。 仅当选择单元格时,才显示向下箭头按钮。

Click the down arrow button to drop down the list of options and select one.

单击向下箭头按钮以下拉选项列表,然后选择一个。

If you decide you want to remove the drop-down list from the cell, open the Data Validation dialog box as described earlier and click the “Clear All” button, which is available no matter which tab is selected on the dialog box.

如果您决定要从单元格中删除下拉列表,请如前所述打开“数据验证”对话框,然后单击“全部清除”按钮,无论该对话框上选择了哪个选项卡,该按钮均可用。

The options on the Data Validation dialog box are reset to their defaults. Click “OK” to remove the drop-down list and restore the cell to its default format.

数据验证对话框上的选项被重置为其默认值。 单击“确定”以删除下拉列表,并将单元格恢复为其默认格式。

If there was an option selected when you removed the drop-down list, the cell is populated with the value of that option.

如果在删除下拉列表时选择了一个选项,则将使用该选项的值填充单元格。

Follow this process to add drop-down lists to other cells as needed. You can use the same list for multiple drop-down lists. If you have many drop-down lists you need to add on a worksheet, you may want to put the lists of options on another worksheet in the same workbook. You can hide the worksheet containing your lists of options to prevent them from being changed.

按照此过程,根据需要将下拉列表添加到其他单元格。 您可以将同一列表用于多个下拉列表。 如果您需要在工作表上添加许多下拉列表,则可能需要将选项列表放在同一工作簿中的另一个工作表上。 您可以隐藏包含选项列表的工作表 ,以防止更改它们。

翻译自: https://www.howtogeek.com/290104/how-to-add-a-drop-down-list-to-a-cell-in-excel/

如何在Excel中将下拉列表添加到单元格相关推荐

  1. 如何在 Excel 中对齐或旋转单元格中的文本?

    欢迎观看 Microsoft Excel 教程,小编带大家学习 Microsoft Excel的使用技巧,了解如何在 Excel 中对齐或旋转单元格中的文本. 在 Excel 中,对齐或旋转单元格的文 ...

  2. 如何在EXCEL中查找多个单元格中的多个关键字,多个单元格满足多个条件的行的绿色在线工具

    Excel查找,偶尔有情况遇到要在Excel中查找多个单元格的多个关键字(或包含或相等),或多个单元格或列满足多个的条件的行,Excel本身的支撑没有那么灵活.本身我们又对代码不熟悉,有一个方便性的工 ...

  3. poi 合并单元格添加边框_如何在Excel中的文本和单元格边框之间添加空间

    poi 合并单元格添加边框 Adding a bit of extra padding to your cell boundaries can make it easier for you to re ...

  4. 如何在 Excel 中查找合并的单元格(并删除它们)

    使用数字格式更改 Excel 中的日期格式 在 Excel 中从日期中删除时间的最简单方法是更改​​数字格式. 这不会从时间戳中删除时间--它只是阻止它在您的单元格中显示.如果您在计算中使用这些单元格 ...

  5. 如何在Excel中打印特定的单元格选择

    Sometimes you want to print only a specific selection of cells on a worksheet. But when you print in ...

  6. 【转】如何在EXCEL表格中删除空白单元格

    选择区域,按F5,定位条件-空值,删除-下方单元格上移 引用地址:http://www.excelpx.com/thread-19194-1-1.html 转载于:https://www.cnblog ...

  7. 如何在excel中取消合并完单元格后自动把内容填充给其每个取消后的单元格

    选中合并区域,取消合并,把合并的取消掉,选定这一列,按下F5,弹出定位对话框,定位条件 选择 空值,确定,按下"=",再按下向上方向键,再同时按下CTRL+ENTER,就可以了.

  8. php利用表格敬将所选择的数据显示出来,单元格下拉筛选设置/Excel对筛选后的单元格进行下拉填充...

    EXCEL里怎样让一个单元格能有下拉菜单? 要设置下拉菜单的单元格(或格区)----数据---有效---"允许"中选择"序"---"来源"中 ...

  9. Microsoft Excel 教程「41」,如何在 Excel 图表中添加标题?

    欢迎观看 Microsoft Excel 教程,小编带大家学习 Microsoft Excel 的使用技巧,了解如何在 Excel 图表中添加标题. 若要使图表更易于理解,可以将图表标题和坐标轴标题添 ...

最新文章

  1. 用Javascript模拟微信飞机大战游戏
  2. webservice服务器端获取request对象的三种方式
  3. pitch android,Pitch Clash
  4. 18 个 jQuery Mobile 开发贴士和教程
  5. leetcode115 不同的子序列
  6. java 不重启部署_一篇文章带你搞定SpringBoot不重启项目实现修改静态资源
  7. ajax为什么返回html标签,AJAX与特定值后返回的HTML标签
  8. 使用apache搭建tomcat集群
  9. 数据库-MySQL-JDBC-execute、executeUpdate、executeQuery
  10. 结构之法算法之道CSDN博客-第一期全部博文集锦[CHM 文件下载]
  11. STM32:Code、RO、RW、Zi含义
  12. javascript进阶课程--第三章--匿名函数和闭包
  13. 让IIS7支持SSI功能(用来支持shtml)的方法
  14. 机器学习_周志华_西瓜书_学习笔记_第16章--强化学习
  15. 火星时代室内效果图风暴10CD B
  16. 8.1 段子中“酷毙”了的IT行业——《逆袭大学》连载
  17. 电脑磁盘分区助手:DiskGenius磁盘管理与数据恢复软件
  18. IRQL深入解析--IRQL级别
  19. PID参数整定口诀与经验法整定PID参数
  20. 用QT操作数据库(本周学的)

热门文章

  1. Como fazer uma要求GET de uma API REST em Java e转换器JSON em um objeto
  2. Python分析《哈哈哈哈哈》47687条弹幕,看看大家都在说些啥!
  3. 拉压力传感器特性及应用
  4. Cucumber测试实践
  5. 分享91个NET源码,总有一款适合您
  6. 基于JAVA大学生规划平台计算机毕业设计源码+系统+lw文档+部署
  7. apache目录遍历漏洞利用_【渗透测试】目录遍历漏洞
  8. SAP EWM 交货单暂存区仓位确定(配置实现 / 前台维护)含操作实例
  9. 深度学习CV领域必读论文
  10. Excel中将文本逆序显示