跳到主要內容

如何在Excel中跨多個列突出顯示重複的行?

例如,如果存在一定範圍的值,如何快速突出顯示這些多列中的重複行,如下面的屏幕截圖所示? 在本文中,我介紹了一些在Excel中解決此問題的技巧。
doc在第1列中突出顯示重複項

通過條件格式突出顯示跨列的重複行

通過Kutools for Excel突出顯示跨列的重複行好主意3


您可以通過在 條件格式 的功能。

1.選擇數據范圍,單擊 首頁 > 條件格式 > 新規則。 而在彈出 新格式規則 對話框中選擇 使用公式來確定要格式化的單元格,然後粘貼此公式 =COUNTIFS($A$2:$A$10,$A2,$B$2:$B$10,$B2,$C$2:$C$10,$C2)>1 放入“在此公式為真的位置設置格式值”框。 看截圖:
doc在第2列中突出顯示重複項

2。 點擊 格式 ,在 新格式規則 對話框打開 單元格格式 對話。 在對話框中,單擊 標籤,然後選擇一種背景顏色,以突出顯示重複的行。 看截圖:
doc在第3列中突出顯示重複項

3。 點擊 OK > OK 關閉對話框,現在已用指定的填充顏色突出顯示了跨多列的重複行。 看截圖:
doc在第4列中突出顯示重複項

備註:在公式中,A2:A10,B2:B10和C2:C10是您要使用的列範圍,您可以根據需要進行更改。


如果您要使用許多列,則條件格式設置不是解決此工作的好選擇。 但是,您可以申請 Excel的Kutools選擇重複和唯一單元格 實用程序可快速突出顯示數十列中的行。

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

安裝後 Kutools for Excel,請執行以下操作:(立即免費下載Kutools for Excel!)

1.選擇數據范圍,單擊 庫工具 > 選擇> 選擇重複和唯一單元格。 看截圖:
doc在第5列中突出顯示重複項

2。 在裡面 選擇重複和唯一單元格 對話框,檢查 重複(第一個除外) or 全部重複(包括第一個) 您需要的選項,然後轉到 結果處理 部分以指定突出顯示顏色和字體顏色。 請點擊 Ok,然後會彈出一個對話框,提醒您所選重複行的數量。 看截圖:
doc在第6列中突出顯示重複項

3。 點擊 OK,現在突出顯示了重複的行。 看截圖:
doc在第78列中突出顯示重複項

最佳辦公生產力工具

🤖 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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Thanks! Any way to do this and make Ben and Kate different colors?
This comment was minimized by the moderator on the site
how do I highlight the 1st row also using the formula in conditional formatting?
This comment was minimized by the moderator on the site
This is PERFECT! THANK YOU!!!
This comment was minimized by the moderator on the site
Thanks so much for this! When there is a duplicate, how can i have the 2nd occurrence highlighted instead of the 1st one? (when using regular excel). Thanks so much
This comment was minimized by the moderator on the site
Hello Shosh, you can use this formula =COUNTIF($A$2:$A2, A2)>1 in the Conditional formatting rule, it will highlighted all duplicates except the first one. Hope it can help you.
This comment was minimized by the moderator on the site
I think she meant she still needs both columns as part of the equation but have it highlight the lower duplicate instead of the higher duplicate.
This comment was minimized by the moderator on the site
Sir, if you change the date of kate from 1/1/2016 to 1/2/2016 cell will be highlighted or not.... what i want is if date,name, and score are.same then highlight. If date is same name is same but score is different then should not be highlight. Please help.
This comment was minimized by the moderator on the site
Both the above methods can work for your problem.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations