比较两个excel表 [英] Compare two excel sheets
问题描述
如何比较两个excel工作表并确定缺少哪一列?
How do I compare two excel sheet and determine which column is missing?
(我想比较A工作表与B工作表的国家/地区列表,标记哪个国家/地区缺失)
(I would like to compare a list of countries from sheet A with sheet B, then mark which country is missing)
注意:它们是随机顺序。
Note: They are in random order.
推荐答案
您可以使用Excel工作表中的 VLOOKUP
函数来帮助在不同工作表中查找缺失数据。例如,取以下两个工作表:
You can use the VLOOKUP
function in an Excel worksheet to help finding "missing" data in a different sheet. For example, take the following two worksheets:
Sheet1
------
A B C
1 aa
2 bb
3 cc
4 dd
。
Sheet2
------
A B C
1 aa
2 bb
3 dd
将以下公式添加到单元格 B1
在
工作表
中将公式向下拖动通过单元格 B4
:
Add the following formula to cell B1
in Sheet
and drag the formula down through cell B4
:
=IF(ISERROR(VLOOKUP(A1,Sheet2!$A$1:$A$3,1,FALSE)),"MISSING FROM OTHER SHEET","")
B
中的其他工作表中缺少
Sheet1
should indicate items that are missing from the other sheet in column B
, like so:
Sheet1
------
A B C
1 aa
2 bb
3 cc MISSING FROM OTHER SHEET
4 dd
这篇关于比较两个excel表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!