1

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

表 1

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

在工作表 2 中,我引用工作表 1。即:='工作表 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     |
4

1 回答 1

2

你需要的是一个 vLookup 函数

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

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

于 2017-02-23T22:46:23.843 回答