跳到主要內容

如何在Excel列中快速查找部分重複項?

doc查找部分重複項1
假設工作表中有一個IP地址列表,並且某些地址的前三個數字重複,這裡的工作是查找僅在最後一個數字不同的重複IP地址,如下面的屏幕截圖所示。 如何在Excel中不一一比較的情況下快速找到這些部分重複項?

使用公式查找部分重複項

使用Kutools for Excel查找部分重複項 好主意3

箭頭藍色右氣泡 使用公式查找部分重複項

要從列中查找部分重複項,可以執行以下操作:

1.選擇IP(例如B2)旁邊的空白單元格,然後輸入此公式 =左(A2,9),向下拖動自動填充手柄,以將此公式應用於所需的單元格。 看截圖:
doc查找部分重複項2

2.然後轉到公式1(例如C2)旁邊的下一個單元格,輸入此公式 = COUNTIF(B:B,B2),然後將填充手柄拖到所需的單元格上。 然後結果 2 (或其他大於1的數字)表示相對IP地址重複, 1 表示唯一。 看截圖:
doc查找部分重複項3

尖端:在以上公式中,A2是您要比較的第一個IP地址,而9是前9個字符,您可以根據需要進行更改。


箭頭藍色右氣泡 使用Kutools for Excel查找部分重複項

Excel的Kutools, 與以上 300 方便的功能,使您的工作更加輕鬆。 

如果你有 Excel的Kutools,您可以結合使用 分裂細胞選擇重複和唯一單元格 公用事業。

免費安裝 Kutools for Excel,請執行以下操作:

1.選擇IP地址,然後單擊 庫工具 > 合併與拆分 > 分裂細胞。 看截圖:
doc查找部分重複項4

2。 在裡面 分裂細胞 對話框,檢查 拆分為列 選項 類別 部分,並檢查 指定寬度 選項並輸入 9 進入下一個文本框。 看截圖:
doc kutools分割儲存格2

小提示: 9表示每9個字符分割一個單元。

3。 點擊 Ok,然後會彈出一個對話框,提醒您選擇一個放置拆分值的單元格,例如在此處選擇H2。 看截圖:
doc kutools分割儲存格3

4.然後將IP地址分為兩部分,一部分包括前9個字符,另一部分包括後兩個字符。
doc kutools分割儲存格4

5.並選擇包含前9個字符的第一部分的列表,然後單擊 庫工具 > 選擇 > 選擇重複和唯一單元格。 看截圖:
doc kutools選擇重複的唯一單元格1

6.在 選擇重複和唯一單元格 對話框,檢查 全部重複(包括第一個) 選項,還可以為重複項設置不同的背景或字體顏色。 看截圖:
doc kutools選擇重複的唯一單元格2

7。 點擊 Ok,會彈出一個對話框,告訴您重複的次數。 現在,已選擇重複的IP地址,並使用顏色進行格式化。 看截圖:
doc kutools選擇重複的唯一單元格3

最佳辦公生產力工具

🤖 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 (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
The formulas provided work too well. I have a column of about 900 cells, each containing text of up to 700 characters. If some have been duplicated with a very minor edit, or (for instance) have a period missing, I need to be able to find them. But the nearly-identical test cells are being flagged as unique. Should I be using a different method?
This comment was minimized by the moderator on the site
very nice information, helpful to identify the partial duplicates
This comment was minimized by the moderator on the site
The information you provide is awesome. You often rank in the top 3 results on Google for the solutions I'm trying to find. Using your site drives me nuts though because I can't tell what is ads for your product and what is part of the solution. It drives me so nuts that I often leave your site to find the solution somewhere less frustrating. There's nothing separating the ads from the article and everything is the same font.
This comment was minimized by the moderator on the site
Thank you for you support firstly. All parts in the article are for solving the problems, but only in different ways. The Ad you mean just the functions we developer which may do better while solving the same problems, I hope you could like them. Sorry to make you nuts.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations