跳到主要内容

如何比较两列以突出显示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中轻松突出显示唯一值(缺失值)。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

1。 点击 库工具 > 选择 > 选择相同和不同的单元格 打开比较范围对话框。
doc选择相同的不同单元格1

2。 在“比较范围”对话框中,您需要:
doc选择相同的不同单元格3124
(1)在 在中寻找价值 框,指定不带列表标题的水果列表1的范围;
(2)在 根据 框,指定不带列表标题的水果列表2的范围;
(3)在 找到最适合您的地方 部分,请检查 不同的价值观 选项;
(4)在 处理结果 部分,请检查 填充背景色 选项,然后从下面的下拉列表中选择一种填充颜色。

备注:请取消选中 我的数据有标题 选项,因为在我们的例子中,两个列表具有不同的标题。 如果列表具有相同的标题,则可以在两个列表中使用列表标题指定范围 在中寻找价值 盒子和 根据 框,然后选中 我的数据有标题 选项。

3。 点击 Ok 按钮。 出现另一个比较范围,以显示选择了多少个值。 只需点击 OK 按钮关闭它。

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

4。 您可以再次应用此实用程序,以突出显示“水果清单1”中“水果清单2”的所有缺失值。

备注:此实用程序区分大小写。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示:比较两列以(突出显示)Excel中的缺失值


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 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