excel下拉隐藏

You can add a drop down list in a cell, to make it easy for people to enter data. It's really easy to make a simple drop down. Then, after you've made a basic list, experiment with fancier features, like hiding items that have been previously selected.

您可以在单元格中添加一个下拉列表,以方便人们输入数据。 简单地下拉菜单确实很容易。 然后,在创建基本列表之后,尝试使用更高级的功能,例如隐藏先前选择的项目。

制作基本的下拉列表 (Make a Basic Drop Down List)

It's easy to make a drop down list with Data Validation. In this example, people will pick the name of the printers that they use in the office.

使用Data Validation轻松创建一个下拉列表 。 在此示例中,人们将选择他们在办公室中使用的打印机的名称。

列出项目 (List the Items)

First, create a list of printers for the drop down

首先,为下拉列表创建打印机列表

  • List the printers on a different sheet, in a single column在不同的工作表中单列列出打印机
  • Then, to name the list, select all the cells, click in the Name Box, type a one-word name "PrimaryList", and press Enter然后,要命名列表,请选择所有单元格,在“名称”框中单击,键入一个单词名称“ PrimaryList”,然后按Enter

Here is the name, "PrimaryList", being typed in the Name Box.

这是在名称框中键入的名称“ PrimaryList ”。

创建下拉列表 (Create the Drop Down List)

Next, select the cell(s) where you want the drop down list to appear

接下来,选择要在其中显示下拉列表的单元格

  • On the Excel Ribbon, click the Data tab在Excel功能区上,单击“数据”选项卡
  • Click the Data Validation command单击数据验证命令
  • From the Allow drop down, select List从“允许”下拉列表中,选择“列表”
  • Click in the Source box, and press the F3 key, to see a list of the names in the workbook在“源”框中单击,然后按F3键,以查看工作簿中的名称列表。
  • Click on the PrimaryList name, and click OK. That name is added to the Source box, with an equal sign in front of it单击PrimaryList名称,然后单击确定。 该名称将添加到“源”框中,并在其前面带有等号
  • Click OK, to create the drop down list in the cell.单击确定,以在单元格中创建下拉列表。
选择一个项目 (Select an Item)

Now, when the cell is active, you can see an arrow at the right border. Click the arrow, and select your primary printer from the list.

现在,当单元处于活动状态时,您可以在右边界看到一个箭头。 单击箭头,然后从列表中选择您的主打印机。

That blue cell has also been named – PPSel (short for Primary Printer Selected)

该蓝色单元也已命名为– PPSel (“选定的主打印机”的缩写)

隐藏二手物品 (Hide Used Items)

Now it's time to make the data entry sheet a little fancier. We'll add two more drop down lists, where people can choose the names of the backup printers that they use.

现在是时候让数据输入表更新颖一些了。 我们将再添加两个下拉列表,人们可以在其中选择他们使用的备用打印机的名称。

The list of printers is almost the same, but we don't want them to pick their primary printer again. That printer should be removed from the list.

打印机列表几乎相同,但是我们不希望它们再次选择其主打印机。 该打印机应从列表中删除。

编号未使用的物品 (Number the Unused Items)

To check which printer was selected as the primary printer, we'll add a formula in the column beside the PrimaryList.

要检查选择哪台打印机作为主打印机,我们将在“主列表”旁边的列中添加一个公式。

NOTE: I've formatted the list as a named Excel Table, so when I enter the formula in the first row, it will automatically fill down to the last row.

注意:我已经将列表格式化为一个名为Excel Table的格式,因此当我在第一行中输入公式时,它将自动填充到最后一行。

  • The new column has the heading NotUsed.新列的标题为NotUsed。
  • The formula in cell C4 is:C4单元格中的公式为:

=IF(COUNTIF(PPSel,[@Printer]),"",SUM(MAX(C$3:C3),1))

= IF(COUNTIF(PPSel,[@ Printer]),“”,SUM(MAX(C $ 3:C3),1))

That numbers every row, except the one with the printer selected as the Primary Printer (PPSel)

该行每行编号,但将打印机选择为主打印机(PPSel)的行除外

列出备用打印机 (List the Backup Printers)

Next, create another named table, with a list of ID numbers from 1 to 10 (to match the number of printers)

接下来,创建另一个命名表,其ID号列表从1到10(以匹配打印机数量)

In the column to the right, put the heading, "Backup"

在右侧的列中,添加标题“备份”

Put this formula in the first data row in that column:

将此公式放在该列的第一数据行中:

=IF(E4>MAX(Table1[NotUsed]),"", INDEX(PrimaryList, MATCH([@ID], Table1[NotUsed],0)))

= IF(E4> MAX(Table1 [NotUsed]),“”,INDEX(PrimaryList,MATCH([@ ID],Table1 [NotUsed],0)))

The formula:

公式:

  • Checks the ID number, to see if it's greater than the MAX number in the NotUsed column检查ID号,以查看其是否大于NotUsed列中的MAX号
  • If it is greater the result is an empty string如果大于则结果为空字符串
  • Otherwise, it uses MATCH to find the position of that ID number, in the NotUsed column否则,它将在未使用列中使用MATCH查找该ID号的位置
  • The INDEX function returns the printer name from that row.INDEX函数从该行返回打印机名称。

命名备份列表 (Name the Backup List)

Next, you'll create a dynamic named range with the list of Backup Printers.

接下来,您将使用“备份打印机”列表创建一个动态的命名范围。

  • Select the cell F2, just above the "Backup" heading cell选择单元格F2,在“备份”标题单元上方
  • On the Excel Ribbon, click the Formulas tab, and click Define Name在Excel功能区上,单击“公式”选项卡,然后单击“定义名称”
  • Type "BackupList" as the name键入“ BackupList”作为名称
  • In the Refers to box, enter the following OFFSET formula, and click OK在“引用”框中,输入以下OFFSET公式,然后单击“确定”。

=OFFSET(Lists!$F$3,1,0,MAX(Table1[NotUsed]),1)

= OFFSET(清单!$ F $ 3,1,0,MAX(表1 [未使用]),1)

The formula returns a range of cells, with the number of rows based on the maximum number in the NotUsed column. You can see that range outlined with a green dashed line, in the screenshot below.

该公式返回一个单元格范围,其中行数基于“未使用”列中的最大数目。 在下面的屏幕快照中,您可以看到用绿色虚线概述的范围。

添加备用打印机下拉列表 (Add the Backup Printer Drop Down Lists)

As the final step, add two more drop down lists on the data entry sheet.

最后一步,在数据输入表上再添加两个下拉列表。

For these drop downs, use the named range that you just created – BackupList

对于这些下拉列表,请使用刚创建的命名范围– BackupList

After you select a Primary Printer, its name won't appear in the list for the Backup Printer selection cells.

选择主打印机后,其名称将不会出现在“备份打印机”选择单元的列表中。

获取样本工作簿 (Get the Sample Workbook)

There are other examples, and the sample workbook for this example, on the Hide Used Items page of my Contextures site.

在我的Contextures网站的“ 隐藏使用的项目”页面上,还有其他示例以及该示例的示例工作簿。

翻译自: https://contexturesblog.com/archives/2017/05/25/hide-used-items-in-excel-drop-down-list/

excel下拉隐藏


http://www.taodudu.cc/news/show-6077503.html

相关文章:

  • excel下拉列表联动_动态数组的Excel下拉列表
  • excel下拉列表数据筛选_从筛选的Excel列表中下拉
  • Excel如何制作下拉列表
  • DirtyWordsFilter(脏字过滤)
  • 阿里云-内容安全-接口demo
  • 【沉浸式腾讯云服务器部署安装docker】
  • 下一代云管理平台?
  • 云原生之使用docker部署centos系统测试环境
  • 阿里云环境(CentOS7.6)部署Zabbix5.0 Agent2
  • 云更新服务器更新不了最新游戏,成都领沃_云更新官方网站
  • 华为云在Linux ECS上使用obsutil通过内网访问OBS
  • 阿里云 apt软件云。ubuntu16 17适用
  • 信息架构
  • 基于消息系统架构设计
  • 企业信息化整体架构图
  • 浅析信息系统架构的应用架构与数据架构
  • 系统架构介绍
  • 信息系统安全管理架构
  • 企业信息系统架构要点
  • 数据架构——数据架构
  • 信息系统典型的开发架构
  • 信息架构的设计思路 .
  • 信息系统架构
  • 构建优秀产品信息架构的三要素
  • Dell戴尔笔记本电脑灵越Inspiron 14 5420原装出厂WIN11系统恢复原厂OEM专用系统
  • 戴尔灵越系列服务器是什么,戴尔灵越系列哪个好-2021戴尔灵越系列型号选购推荐...
  • python编程:从入门到实践 阅读笔记
  • 怎么把备忘录中的视频导到手机相册里
  • 导出备忘录Word文档
  • 怎么把荣耀8x的手机备忘录导到电脑里?

excel下拉隐藏_在Excel下拉列表中隐藏使用过的项目相关推荐

  1. html 联想下拉菜单,excel下拉菜单联想 在Excel中制作具有联想能力的下拉列表的方法...

    excel下拉菜单联想 在Excel中制作具有联想能力的下拉列表的方法,看到标题你是不是很兴奋,这不就是你想学习的知识吗?当你掌握excel下拉菜单联想这个知识的时候你一定很兴奋,一定不会后悔看了ex ...

  2. excel下拉菜单vba_在Excel下拉菜单中显示警告

    excel下拉菜单vba With Excel's data validation, you can show a drop down list of items in a cell. You can ...

  3. excel下拉菜单vba_在Excel下拉菜单中删除使用过的项目

    excel下拉菜单vba There is a new sample file on my Contextures web site, which lets you pick players for ...

  4. 视频教程-Excel下拉菜单怎么做 Excel排序高手技巧视频教程-Office/WPS

    Excel下拉菜单怎么做 Excel排序高手技巧视频教程 本人张光欢,在2018年4月1日注册公司邢台水滴计算机科技有限公司,从事于计算机软硬件开发,信息技术咨询服务 张光欢 ¥39.00 立即订阅 ...

  5. java实现设置Excel下拉框在使用Excel的时候用到了下拉框,实现的效果如下↓

    在使用Excel的时候用到了下拉框,实现的效果如下↓ 在生成excel文件时,需要根据给出的下拉框选项列表动态生成下拉框.实现代码如下: private void createSelect(XSSFW ...

  6. XSSF实现Excel下拉和HSSF实现Excel下拉

    有一种情况,初始化一个列时能用这种方法,但在循环调用时却不能制造多个下拉,原因是输入输出流的问题,每做完一列的下拉就要关闭流关闭文件,然后再打开就可以制造多个列了,不能一次制造多个列的下拉. HSSF ...

  7. python choice添加下拉框_自定义Django Form中choicefield下拉菜单选取数据库内容实例...

    工作中遇到的问题,自定义了一个forms.form表单,某项需要作出下拉菜单,下拉菜单中的选项需要从数据库(objectForm models)中提取. form.py为: class objectF ...

  8. python下拉菜单_自定义Django Form中choicefield下拉菜单选取数据库内容实例

    工作中遇到的问题,自定义了一个forms.form表单,某项需要作出下拉菜单,下拉菜单中的选项需要从数据库(objectForm models)中提取. form.py为: class objectF ...

  9. excel下拉菜单自动匹配_自动将新项目添加到Excel数据验证下拉菜单

    excel下拉菜单自动匹配 There's a sample Excel workbook on my Contextures website that uses a bit of Excel VBA ...

最新文章

  1. CSS中表格的一些属性和使用
  2. AutoML自定义搜索网络类(如何在一个大的网络中搜索一个网络)
  3. P2339 提交作业usaco
  4. [BeiJing2011][bzoj2460] 元素
  5. java的mybatis批量更新_mybatis批量更新的问题
  6. 【Java从入门到头秃专栏 7】语法篇(六) :Lambda表达式(->) 方法引用(::) stream流
  7. 重新打包system.img
  8. UI设计教程学习分享:APP布局
  9. 使用bbscope进行大规模域名收集扫描
  10. windows mysql 升级
  11. 数据库连接工具sqldbx、dbvisualizer使用笔记
  12. 深度解读汽车域控制器
  13. vba操作ie关闭窗口
  14. locality sensitive hashing(LSH)原理和具体实现
  15. ISE 下按键消抖实验
  16. Python标准库之正则表达式(re库)
  17. java oracle 流水号_Oracle生成流水号函数
  18. TCP的长连接与短连接
  19. USB总线驱动及鼠标驱动实例
  20. Amazon Web Services: Networking AWS:网络 Lynda课程中文字幕

热门文章

  1. clickhouse 集群异常排查处理总结
  2. python网易云听歌时长_用Python爬取10w条网易云音乐热评并进行分析的方法总结
  3. 【Deep Learning 5】FNN前馈神经网络
  4. JavaScript:100以内质数1000以内的质数显示和统计
  5. 用Python把它做出来:EXCEL文件合并/拆分工具 (含VBA版)
  6. Android适配全面屏/刘海屏
  7. C 语言(int )和(int*)的区别
  8. BigDecimal取余运算
  9. 限流是解决高并发大流量的一种方案,至少是可以保证应用的可用性
  10. Android BLE HIDS Data ,从问询DB 到写入Android 节点的flow 之四