跳到主要内容

如何根据另一个工作表中的列表选择过滤行?

在Excel中,我们通常根据条件过滤行,但是如果有两个列表,一个在Sheet1中,另一个在Sheet2中,您是否有任何技巧可以根据Sheet1中的列表快速过滤Sheet2中的行,如下面的屏幕快照所示? 在这里,我介绍解决此工作的方法。
基于选择1的doc过滤器

使用高级过滤器功能基于列表选择过滤行

使用公式根据列表选择过滤行

使用 Kutools for Excel 根据列表选择提取行好主意3


使用高级过滤器功能基于列表选择过滤行

要根据选择内容过滤行,可以应用“高级过滤器”功能。

1.选择要过滤的列列表,然后单击 时间 > 高级 ,在 排序和过滤 组。 看截图:
基于选择2的doc过滤器

2.然后在 进阶筛选 对话框,检查 筛选器 列表,就地选项,然后您可以看到要过滤的所选列表已添加到 清单范围和点击 doc选择图标 ,在 条件范围 选择要作为过滤依据的列表。 看截图:
基于选择3的doc过滤器

3。 点击 OK。 现在,该列表已经根据另一个列表进行了过滤。 看截图:
基于选择4的doc过滤器


使用公式根据列表选择过滤行

使用公式,您还可以基于列表选择来过滤行。

1.选择要过滤的行旁边的空白单元格,然后输入此公式 = COUNTIF(Sheet2!$ A $ 2:$ A $ 6,A2),然后按 输入,然后向下拖动自动填充手柄以将此公式应用于单元格。 看截图:
基于选择5的doc过滤器

备注:在公式中,Sheet2!A2:A6是您要基于其过滤的列表。

2.选择包含公式的列,然后单击 时间 > 筛选器 申请 筛选器 功能。 看截图:
基于选择6的doc过滤器

3。 点击 筛选器 公式列中的图标,仅选中 1 在下拉列表中。 看截图:
基于选择7的doc过滤器

4。 点击 OK。 现在,已根据Sheet2中的列表对行进行了过滤。
基于选择8的doc过滤器


使用 Kutools for Excel 根据列表选择提取行

如果要比较两个列表,然后根据另一个列表提取行,则可以应用 Kutools for Excel选择相同和不同的单元格 实用程序,它可以比较两个范围,然后选择相同的行,然后可以根据需要将行提取到另一个位置。

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

安装后 Kutools for Excel,请执行以下操作:(立即免费下载Kutools for Excel!)

1.首先选择要过滤的列表,然后单击 库工具 > 选择 > 选择相同和不同的单元格。 看截图:
基于选择9的doc过滤器

2.在弹出的对话框中,选择 doc选择图标 ,在 根据 文本框以选择条件列表,然后选中 每一行相同的价值 选项,去检查 选择整行 选项。 如果选择包括标题,请检查 我的数据有标题。 看截图:
基于选择10的doc过滤器

3。 点击 Ok,会弹出一个对话框,提醒您选择的所有相同行的数量,然后单击 OK 关闭它。 现在选择了相同的行。
基于选择11的doc过滤器

4.然后按 按Ctrl + C 复制选定的单元格,然后选择一个单元格并按 按Ctrl + V 查找行。
基于选择12的doc过滤器

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
The advanced filter is not working. It is either not working at all or the filter is ignored.
This comment was minimized by the moderator on the site
Hi
I'm trying this but hoping to use a drop down selection to make my pick. When I first add the advanced filter it works, but the hope was to then change the drop down option to something else and have the table re-filter and show the row with the new selection. This doesn't work though. Any ideas of how to get something like that working? Surely that is the optimal solution for this?
This comment was minimized by the moderator on the site
The Advanced filter does nothing. I click it and no filter applies and no changes have applied
This comment was minimized by the moderator on the site
In the criteria range, make sure the header text matches the list range header text. In addition, select the cells from the header to the last row, not the entire column. It didn't work for me at first too then I give it another try with same headers and after restricting the criteria list to the filled cells, it worked.
This comment was minimized by the moderator on the site
thanks that did the trick
This comment was minimized by the moderator on the site
ah, the header thing did the trick for me, thanks! without giving the ranges the same header it didn't work. 
This comment was minimized by the moderator on the site
Dear, Please help to know as how to arrange data in one row by use comma (,) from a list in one column such as
from one column
504020
504020
302080
504020
302080
504020
to in one row
302080, 504020

Thanks/Maksud
This comment was minimized by the moderator on the site
I have not understand your question clearly. You mean to transpose a list into a cell and separated data by comma? If so, you only need to apply Kutools for Excel's Combine Rows and Columns utility to combine all data into one cell by comma. Let me know if it help. Thank u.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations