Google 电子表格
Google Spreadsheet
我有一个包含两张纸的电子表格。 Sheet 1 有一列名称和一列数字。 Sheet 2 引用数据来自 Sheet 1.
Sheet 1
+---+------+--------+
| | A | B |
+---+------+--------+
| 1 | Name | Number |
+---+------+--------+
| 2 | Foo | 10 |
在 Sheet 2 中,我引用了 Sheet 1。即:='Sheet 1':A2。我还有另一个地方需要获取与引用的单元格关联的数值。
Sheet 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 |
你需要的是一个vLookup函数
=VLOOKUP(A2,Sheet1!A:B,2,false)
可在此处找到文档:https://support.google.com/docs/answer/3093318?hl=en
我有一个包含两张纸的电子表格。 Sheet 1 有一列名称和一列数字。 Sheet 2 引用数据来自 Sheet 1.
Sheet 1
+---+------+--------+
| | A | B |
+---+------+--------+
| 1 | Name | Number |
+---+------+--------+
| 2 | Foo | 10 |
在 Sheet 2 中,我引用了 Sheet 1。即:='Sheet 1':A2。我还有另一个地方需要获取与引用的单元格关联的数值。
Sheet 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 |
你需要的是一个vLookup函数
=VLOOKUP(A2,Sheet1!A:B,2,false)
可在此处找到文档:https://support.google.com/docs/answer/3093318?hl=en