跳到主要內容

如何比較兩列以突出顯示Excel中的缺失值?

例如,在兩個工作表中有兩個水果列表,如下面的屏幕截圖所示,現在我需要比較這兩個列表並找出每個列表中缺少的值。 手動解決它可能並不容易。 在本文中,我將介紹兩種輕鬆解決問題的棘手方法。


用公式比較兩列(突出顯示)缺失值

該方法將以一個示例為例,找出水果清單1的缺失值,並在水果清單2中突出顯示/為這些缺失值上色。以下是詳細的步驟:

1。 選擇第一個空白單元格 水果清單2,輸入 水果清單1中缺少 作為列標題,然後輸入公式 =IF(ISERROR(VLOOKUP(A2,'Fruit List 1'!$A$2:$A$22,1,FALSE)),A2,"") 進入第二個空白單元格,然後根據需要將“填充手柄”拖動到該範圍。 見下面的截圖:

筆記:
(1)在上面的公式中,A2是水果清單2,“水果清單1”中的值!$ A $ 2:$ A $ 22是您要尋找其缺失值的範圍。
(2)此公式忽略大小寫敏感性。

然後,您將在新列中看到“水果清單1”的缺失值,如下圖所示:

2。 在“水果清單2”中選擇找到的值,然後通過單擊突出顯示它們 首頁 > 填充顏色 然後從下拉列表中選擇填充顏色。

3。 您可以應用類似的公式 =IF(ISERROR(VLOOKUP(A2,'Fruit List 2'!$A$2:$A$22,1,FALSE)),A2,"") (A2是“水果清單1”中的水果,“水果清單2”!$ A $ 2:$ A $ 22是您要查找其缺失值的範圍)以找出“水果清單2”中的缺失值(請參見下面的屏幕截圖),然後在“水果清單1”中手動突出顯示這些缺失的值。

比較兩列並在Excel中選擇/突出顯示相同的值

使用Kutools for Excel的 選擇相同和不同的單元格 功能,您可以輕鬆比較兩列值,然後根據相同的值或不同的值選擇整個行,如下面的屏幕快照所示。 在Excel中選擇後,將很容易刪除這些行。


廣告按多個值選擇整行

使用Kutools for Excel比較兩列(突出顯示)缺失值

冗長而復雜的公式可能會讓您感到困惑。 在這種方法中,我將為您介紹Kutools for Excel。 它的 選擇相同和不同的單元格 實用程序可以幫助您比較兩個列表並在Excel中輕鬆突出顯示唯一值(缺失值)。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!

1。 點擊 庫工具 > 選擇 > 選擇相同和不同的單元格 打開比較範圍對話框。
doc選擇相同的不同單元格1

2。 在“比較範圍”對話框中,您需要:
doc選擇相同的不同單元格3124
(1)在 在中尋找價值 框,指定不帶列表標題的水果列表1的範圍;
(2)在 根據 框,指定不帶列表標題的水果列表2的範圍;
(3)在 發現 部分,請檢查 不同的價值觀 選項;
(4)在 結果處理 部分,請檢查 填充背景色 選項,然後從下面的下拉列表中選擇一種填充顏色。

備註:請取消選中 我的數據有標題 選項,因為在我們的例子中,兩個列表具有不同的標題。 如果列表具有相同的標題,則可以在兩個列表中使用列表標題指定範圍 在中尋找價值 盒子和 根據 框,然後選中 我的數據有標題 選項。

3。 點擊 Ok 按鈕。 出現另一個比較範圍,以顯示選擇了多少個值。 只需點擊 OK 按鈕將其關閉。

現在,您看到“水果列表2”中所有缺失的值都在“水果列表1”中由指定的填充顏色突出顯示,如上圖所示。

4。 您可以再次應用此實用程序,以突出顯示“水果清單1”中“水果清單2”的所有缺失值。

備註:此實用程序區分大小寫。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


演示:比較兩列以(突出顯示)Excel中的缺失值


Excel的Kutools:超過 300 個方便的工具觸手可及! 立即開始 30 天免費試用,沒有任何功能限制。 現在就下載!

相關文章:

最佳辦公生產力工具

🤖 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
Hi,
I have a large list of products. For each of the products I have several offers from suppliers. I brought them with vlookup in the same sheet. Is there a function that I can use that will tell me what the best purchase offer is? That is.. buy product P1 from supplier Alpha, product P2 buy it from supplier Beta. Thank you!
This comment was minimized by the moderator on the site
Hi there,

Assume you have two columns: Column A contains suppliers' names, and Column B contains their prices. To find the name of the supplier with the lowest price, you can use this formula: =INDEX(A:A, MATCH(MIN(B:B), B:B, 0))
This comment was minimized by the moderator on the site
Buna ziua,
Am trei coloane cu mai multe linii cu preturi unitare si as vrea sa vad care din preturi sunt cele mai mici si pentru care coloana.
Coloanele A B C
Linia l
Linia II
Linia III
Multumesc!
This comment was minimized by the moderator on the site
Hi there,

So you mean that there are nine numbers you want to compare and get the lowest one?
And the result you want is in a cell in another column and the exact lowest number?

Amanda
This comment was minimized by the moderator on the site
I have 10 barcodes in colume A and same barcodes in column B but 9 barcode. Can i find out with same on excel, please help me out.
This comment was minimized by the moderator on the site
Hi Manjot Singh,
You can use this formula =COUNTIF($B$1:$B$9,A1)
Return 0 indicates the number in Cell A1 does not exist in Column B, while Return 1 or other numbers means the number in Cell A1 exists in Column B. See below screenshot:
This comment was minimized by the moderator on the site
Hi, I have two lists.one with meaning and code.In a column i will show meaning but when when we select meaning, code should be come
This comment was minimized by the moderator on the site
I need a formula to compare two cells and get the not matching character in third cell. eg. cell 1 - 'Pen' & cell 2 - 'Pens' = cell 3 's'
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations