简体   繁体   English

VLOOKUP错误-EXCEL

[英]VLOOKUP Error - EXCEL

I am trying to use VLOOKUP for the following: Column A has all my data ids ( numbers) and Column B has a subset of my data ids in coulmn A 我正在尝试将VLOOKUP用于以下用途:列A具有我的所有数据ID(数字),列B具有我的数据ID的子集(在同列A中)

I need to get a list of all the ids which do not exist in Column B. 我需要获取列B中不存在的所有ID的列表。

My VLOOKUP function looks like this: 我的VLOOKUP函数如下所示:

= VLOOKUP(A1,B:B,2,FALSE)

I keep getting #N/A and #REF errors. 我不断收到#N / A和#REF错误。 I am not sure why. 我不知道为什么。

Can some one please tell me what I am doing wrong. 有人可以告诉我我在做什么错。 I am going on and on trying everything and nothing seems to be working. 我正在继续尝试一切,似乎没有任何效果。

Is my formula incorrect? 我的公式不正确吗?

Thanks. 谢谢。

You're returning the 2nd column when your array is only 1 column. 当数组只有1列时,您将返回第二列。 The 2 needs to be a 1. 2必须是1。

=VLOOKUP(A2, B:B, 1, FALSE)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM