比较 Excel 中的列表
Compare Lists In Excel
我需要比较 Excel 中的两个列表。格式是这样的:
ID Amt ID AMT
12 35 12 53
14 63 18 22
88 33 24 55
之前的列表与 ID 完全匹配,所以我只是简单地使用 =
函数并说
A1=D1
B1=E1
但是,正如您现在看到的,# 有所不同。比较这两个列表的最快、最有效的方法是什么?我需要做的是:
1) From the list on the right find the id in the list on the left
2) Verify the amt from the list on the right matches the list on the left
3) If it matches, do nothing, if it does not change the fill on the list on the right to red.
编辑
我尝试使用 VLOOKUP()
函数,这是我设置的标准:
=VLOOKUP(A2,E2:F571,2,TRUE)
现在让我解释一下,A2 保存着我想在 E2 中定位的 ID,而 F# 保存着我想要与 A# 中的值进行比较的值,所以我将下一个值设置为 2。
我使用了 TRUE,因为我只想要一个完全匹配,但是当使用它时,它会在我的所有行上生成一个#N/A。
我需要比较 Excel 中的两个列表。格式是这样的:
ID Amt ID AMT
12 35 12 53
14 63 18 22
88 33 24 55
之前的列表与 ID 完全匹配,所以我只是简单地使用 =
函数并说
A1=D1
B1=E1
但是,正如您现在看到的,# 有所不同。比较这两个列表的最快、最有效的方法是什么?我需要做的是:
1) From the list on the right find the id in the list on the left
2) Verify the amt from the list on the right matches the list on the left
3) If it matches, do nothing, if it does not change the fill on the list on the right to red.
编辑
我尝试使用 VLOOKUP()
函数,这是我设置的标准:
=VLOOKUP(A2,E2:F571,2,TRUE)
现在让我解释一下,A2 保存着我想在 E2 中定位的 ID,而 F# 保存着我想要与 A# 中的值进行比较的值,所以我将下一个值设置为 2。
我使用了 TRUE,因为我只想要一个完全匹配,但是当使用它时,它会在我的所有行上生成一个#N/A。