Google电子表格

时间:2017-02-23 20:28:49

标签: google-sheets spreadsheet

我有一张带两张纸的电子表格。表1有一列名称和一列数字。表2引用了表1中的数据。

第1页

+---+------+--------+
|   |  A   |   B    |
+---+------+--------+
| 1 | Name | Number |
+---+------+--------+
| 2 | Foo  |   10   |

在表2中,我引用了表1. ie:='表1':A2。我有另一个地方需要获取与引用的单元格相关联的数字值。

第2页

+---+----------------+-------------------------------------------+
|   |       A        |                    B                      |
+---+----------------+-------------------------------------------+
| 1 | Bar            | Baz                                       |
+---+----------------+-------------------------------------------+
| 2 | ='Sheet 1':A2  | Needs to look up what cell was referenced |
|   |                | in cell A2, and get the appropriate       |
|   |                | number column, next to that cell          |
|   |                | In this case it would be 'Sheet 1':B2     |

1 个答案:

答案 0 :(得分:1)

您需要的是一个vLookup功能

=VLOOKUP(A2,Sheet1!A:B,2,false)

可以在此处找到文档:https://support.google.com/docs/answer/3093318?hl=en