如果匹配值与其他单元格匹配,则从其他工作表中获取其他单元格的值

时间:2019-11-02 14:42:34

标签: google-sheets google-sheets-formula array-formulas gs-vlookup

我的工作表上有数据。现在,如果工作表1的列A值与工作表2的列A匹配,我想将数据从工作表1中获取到工作表2。

Sheet one

Column A |             | Column B
=================================
Hello    |             | 1
World!   |             | 2
Foo      |             | 3
Bar      |             | 4

我现在拥有的

Sheet two

    Column A |             | Column B
    =================================
    Hello    |             |  
    World!   |             |  
    Bar      |             |  

我想要什么

 Sheet two

    Column A |             | Column B
    =================================
    Hello    |             | 1
    World!   |             | 2
    Bar      |             | 4

1 个答案:

答案 0 :(得分:1)

使用此:

=ARRAYFORMULA(IFNA(VLOOKUP(A:A; Sheet1!A:B; 2; 0)))
相关问题