跳到主要內容

如何在Excel中的3列中查找公用值?

通常,您可能需要在Excel中的兩列之間找到並選擇相同的值,但是,您是否曾經嘗試過在三列中找到相同的值,這意味著該值同時存在於三列中,如以下屏幕截圖所示。 本文,我將介紹一些在Excel中完成此任務的方法。

3欄的doc共同值1

使用數組公式在3列中查找通用值


箭頭藍色右氣泡 使用數組公式在3列中查找通用值

要從3列中查找並提取公共值,請執行以下數組公式,以幫助您:

將此數組公式輸入到空白單元格中,您要在其中從3列中提取相同的值:

=LOOKUP("zzz",CHOOSE({1,2},"",INDEX(A$2:A$10,MATCH(0,COUNTIF(E$1:E1,A$2:A$10)+IF(IF(COUNTIF(B$2:B$8,A$2:A$10)>0,1,0)+IF(COUNTIF(C$2:C$9,A$2:A$10)>0,1,0)=2,0,1),0)))),然後按 Shift + Ctrl + 輸入 鍵一起獲得第一個共同值,然後向下拖動此公式直到顯示空白,並提取3列中的所有相同值,如下圖所示:

3欄的doc共同值2

筆記:

1.這是另一個數組公式也可以完成這項工作:

=INDEX($A$2:$A$10, MATCH(0, COUNTIF($E$1:E1, $A$2:$A$10)+IF(IF(COUNTIF($B$2:$B$8, $A$2:$A$10)>0, 1, 0)+IF(COUNTIF($C$2:$C$9, $A$2:$A$10)>0, 1, 0)=2, 0, 1), 0)),請記住按 Shift + Ctrl + 輸入 鍵同時。

2.在以上公式中: A2:A10, B2:B8, C2:C9 是您要比較的三列中的單元格; E1 是公式所在的上述單元格,則可以根據需要進行更改。

最佳辦公生產力工具

🤖 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 (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
ONLY ONE NAME IS FOUND COMMON... REST ARE IGNORED
This comment was minimized by the moderator on the site
Hello, Prtsxr,
The formula works well in my worksheet, could you insert the screenshot of your problem data here? or insert an attachment of your data, so that we can chek where the problem is.
Thank you!
This comment was minimized by the moderator on the site
i would like to know the match function, how do you use it. It is different from the traditional usage.
This comment was minimized by the moderator on the site
could you tell me why the match function, lookup value is 0?
This comment was minimized by the moderator on the site
HI, I am coping and pasting the above formula and i can't get it to work. I have many blank cells appearing but no common data showing. Please what am I doing wrong? I keep the "zzz" in the lookup formula is that correct?
This comment was minimized by the moderator on the site
hi any body can help me ?how to find common values if i have 10 column or above please solve that formula or mail my address
This comment was minimized by the moderator on the site
Hello. I tried using this formula and it works perfectly but there is one slight problem. It takes a lot of time for the calculation. It is taking around 20 seconds everytime I change some entries in the columns. Can you help regarding it?
This comment was minimized by the moderator on the site
I have tried the formula and it seems it works. Could I apply the same to find a macth between 5 columns?
This comment was minimized by the moderator on the site
yes, I did that.

This comment was minimized by the moderator on the site
I HAD TRIED THE FORMULA, BUT DO NOT GET THE RESULT. WHY??
This comment was minimized by the moderator on the site
Same here. I get "#N/A" instead of any results. I even recreated the spreadsheet shown in the example and got the same results.
This comment was minimized by the moderator on the site
Hello, Richard,
The formula works well in my workbook, could you give a screesnhot here to show your problem?
You can take a screenshot and click Upload files icon to insert your screenshot here.
Thank you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations