跳到主要內容

如何根據另一個工作表中的列表選擇過濾行?

在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),然後按 Enter,然後向下拖動自動填充手柄以將此公式應用於單元格。 看截圖:
基於選擇5的doc過濾器

備註:在公式中,Sheet2!A2:A6是您要基於其過濾的列表。

2.選擇包含公式的列,然後單擊 數據 > 篩選 申請 篩選 功能。 看截圖:
基於選擇6的doc過濾器

3。 點擊 篩選 公式列中的圖標,僅選中 1 在下拉列表中。 看截圖:
基於選擇7的doc過濾器

4。 點擊 OK。 現在,已根據Sheet2中的列表對行進行了過濾。
基於選擇8的doc過濾器


使用Kutools for Excel根據列表選擇提取行

如果要比較兩個列表,然後根據另一個列表提取行,則可以應用 Excel的Kutools選擇相同和不同的單元格 實用程序,它可以比較兩個範圍,然後選擇相同的行,然後可以根據需要將行提取到另一個位置。

Excel的Kutools, 與以上 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選項卡為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