简体   繁体   English

vlookup时无效的单元格引用错误?

[英]Invalid Cell Reference Error while vlookup?

  1. Need to look up values under column A of sheet1 and match it with values under Column A of sheet2. 需要在sheet1的A列下查找值,并将其与sheet2的A列下的值匹配。
  2. If matches , Return the corresponding value under column B of sheet1 as result . 如果匹配,则返回sheet1的B列下的对应值作为结果。
  3. Display the result under column C of sheet 2. 在工作表2的C列下显示结果。

I came up with below vlookup formula and apply it on column C of sheet 2 but it gives error Invalid Cell Reference Error 我想出了以下vlookup公式,并将其应用于工作表2的C列,但给出了错误Invalid Cell Reference Error

=VLOOKUP(Sheet1!A:A,A:A,Sheet1!B:B,FALSE)

Your VLOOKUP syntax looks seriously off to me. 您的VLOOKUP语法对我来说很严重。 It should be something like this: 应该是这样的:

=VLOOKUP(A2,Sheet2!A2:B100,2,FALSE)

This assumes that: 这假定:

  • You are entering this formula into cell B2 on Sheet1 您正在将此公式输入到Sheet1的单元格B2
  • Your data begins at row 2 of Sheet1 (if not, adjust A2 to whatever it needs to be) 您的数据从Sheet1的第2行开始(如果没有,则将A2调整为所需的值)
  • Sheet2 has the lookup data also starting in A2 , and the value is in column B Sheet2的查找数据也从A2开始,其值在B列中

In the column c of Sheet2 use this vlookup formula.For example in Sheet2, cell c2 if you paste this formula. Sheet 2中的列c如果粘贴该公式使用此VLOOKUP formula.For示例Sheet 2中,小区c2。 =VLOOKUP(A2,Sheet1!A:B,2,FALSE) = VLOOKUP(A2,Sheet1!A:B,2,FALSE)

The formula will look for the value in cell A2 of Sheet2 in Column A of sheet1 and return the corresponding value in columnB(exact match)of Sheet1 to Cell c2 in sheet2. 该公式将在sheet1的A列的Sheet2的单元格A2中查找值,并将Sheet1的B列(完全匹配)中的对应值返回到sheet2的单元格c2。

Hope this helps! 希望这可以帮助!

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

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