excel 多项 匹配_在Excel中显示匹配项列表

excel 多项 匹配

Today's video shows how to set up a matching items list – select a region name, and the list shows all employees who work in that region. There are no macros, just a data validation list and a few formulas.

今天的视频显示了如何设置匹配项目列表-选择一个地区名称,该列表显示了在该地区工作的所有员工。 没有宏,只有数据验证列表和一些公式。

NOTE: If you have a version of Excel with dynamic arrays (Excel for Office 365), use dynamic arrays to create the list of matching items instead. (video below)

注意 :如果您具有带有动态数组的Excel版本(用于Office 365的Excel),请使用动态数组来创建匹配项列表 。 ( 下面的视频 )

显示匹配项 (Show Matching Items)

This animated screen shot shows how the matching items list works.

此动画屏幕快照显示了匹配项列表的工作方式。

  • Select a Region name from the drop down list

    从下拉列表中选择一个地区名称
  • Employees from that region are listed in the Excel table

    该表中列出了该地区的员工
List matching items demo

视频:列出匹配项 (Video: List Matching Items)

This video shows how to set up the Excel tables, and the drop down list. Then, see how to add the formulas, and learn how those formulas work.

该视频显示了如何设置Excel表以及下拉列表。 然后,查看如何添加公式,并了解这些公式的工作原理。

演示地址

Video Timeline

影片时间表

  • 00:00 Introduction

    00:00简介
  • 01:01 Create 2 Lists

    01:01创建2个列表
  • 01:26 Named Tables

    01:26命名表
  • 02:08 Name the Tables

    02:08命名表格
  • 02:48 Named Ranges

    02:48命名范围
  • 03:41 Drop Down List

    03:41下拉列表
  • 04:50 Employee Numbers

    04:50员工人数
  • 07:31 Number in Region

    07:31地区号码
  • 08:44 Matching Items List

    08:44匹配项列表
  • 09:29 Number Formula

    09:29数字公式
  • 11:48 Employee Name Formula

    11:48员工姓名公式
  • 13:47 Get the Workbook

    13:47获取工作簿

详细步骤和工作簿 (Detailed Steps and Workbook)

To see the detailed written steps, and to get the sample workbook, go to the Matching List Items page on my Contextures site.

若要查看详细的书面步骤并获取示例工作簿,请转到Contextures网站上的“匹配列表项”页面

There are two versions of the Excel file, so download one or both of them:

Excel文件有两个版本,因此请下载其中一个或两个:

  • Start: It has unformatted lists of regions and employees, so you don't have to type those. None of the formulas, names or table formatting have been added

    开始 :它具有区域和雇员的无格式列表,因此您无需键入这些内容。 没有添加任何公式,名称或表格格式

  • Completed: It has the completed example, with all of the formulas, names and table formatting

    已完成 :具有已完成的示例,其中包含所有公式,名称和表格格式

视频:匹配项–动态数组 (Video: Matching Items – Dynamic Arrays)

If your version of Excel has dynamic arrays, use those new functions to create the matching items list.

如果您的Excel版本具有动态数组,请使用这些新函数创建匹配项列表。

NOTE: Dynamic arrays are available in Microsoft 365 plans.

注意Microsoft 365计划提供了动态阵列。

This video shows the steps, and get the written steps and sample file on the Dependent Drop Down – Dynamic Arrays page.

该视频显示了步骤,并在Dependent Drop Down – Dynamic Arrays页面上获得了书面步骤和示例文件。

演示地址

Video Timeline:

视频时间轴:

  • 0:00 Introduction

    0:00简介
  • 0:31 Create a Unique List of Regions

    0:31创建唯一的区域列表
  • 2:38 Make a Region Drop Down

    2:38下拉区域
  • 3:30 Create an Employee List

    3:30创建员工列表
  • 5:50 Make an Employee Drop Down

    5:50使员工下落
  • 7:35 Get the Workbook

    7:35获取工作簿

翻译自: https://contexturesblog.com/archives/2020/07/23/show-list-of-matching-items-in-excel/

excel 多项 匹配

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Excel可以使用“模糊多对多匹配”来查找一个值在多个范围匹配。以下是一些示例: 1. 使用VLOOKUP函数进行模糊多对多匹配 假设有一个名为“学生名单”的表格,其包含学生姓名和他们所属的班级。现在想要查找一个名为“李四”的学生所属的班级。如果使用普通的VLOOKUP函数,只能查找一个范围匹配,而无法查找多个范围。但是,可以使用VLOOKUP函数和IF函数来进行模糊多对多匹配,如下所示: =IFERROR(VLOOKUP("李四", A:B, 2, 0), IFERROR(VLOOKUP("*李*", A:B, 2, 0), VLOOKUP("*四*", A:B, 2, 0))) 上述公式的意思是:首先查找“李四”这个值在A列匹配,如果找到了,直接返回对应的B列的值;如果没有找到,再分别查找所有包含“李”和“四”的值在A列匹配,如果找到了,也返回对应的B列的值。这样,就可以实现模糊多对多匹配了。 2. 使用INDEX和MATCH函数进行模糊多对多匹配 除了VLOOKUP函数外,还可以使用INDEX和MATCH函数进行模糊多对多匹配。假设有一个名为“商品清单”的表格,其包含商品的名称、类别和价格。现在想要查找所有类别为“水果”或包含关键字“苹果”的商品的价格。可以使用以下公式: =IFERROR(INDEX(C:C, SMALL(IF((B:B="水果")+(ISNUMBER(SEARCH("苹果", B:B))), ROW(B:B)-MIN(ROW(B:B))+1), ROW(A1))), "") 该公式是一个数组公式,需要使用Ctrl+Shift+Enter来输入。其原理是:首先使用IF函数判断每个单元格的值是否为“水果”或包含关键字“苹果”,如果是,则返回该行的行号;然后使用SMALL函数将行号从小到大排列,并返回第n个行号(n为数组公式所在行的行号),最后使用INDEX函数返回对应的价格。如果没有找到任何匹配,则返回空字符串。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值