我在表“1”中有数据如下:
"row" "identifier 1" "identifier 2" "delta"
(1.2) 100 11 89
(3.14) 3 88 85
(6.41) 56 30 26
... ... ... ...
... ... ... ...
我有另一个表,它使“标识符1”的重新映像如下:
"identifier 1 before renaming" "identifier 1 after renemage"
100 11
3 88
56 30
... ..
我的问题如何将表1的“标识符1”列中的值替换为与“重新映像后的标识符1”对应的值
谢谢。答案 0 :(得分:0)
您可以使用VLOOKUP函数在两个表之间进行左连接。
考虑以下电子表格
+---+--------------------------------+-----------------------------+--------------+-------+------------------+
| | A | B | C | D | E |
+---+--------------------------------+-----------------------------+--------------+-------+------------------+
| 1 | row | identifier 1 | identifier 2 | delta | New Identifier 1 |
| 2 | (1.2) | 100 | 11 | 89 | 11 |
| 3 | (3.14) | 3 | 88 | 85 | |
| 4 | (6.41) | 56 | 30 | 26 | |
| 5 | | | | | |
| 6 | "identifier 1 before renaming" | identifier 1 after renemage | | | |
| 7 | 100 | 11 | | | |
| 8 | 3 | 88 | | | |
| 9 | 56 | 30 | | | |
+---+--------------------------------+-----------------------------+--------------+-------+------------------+
在E2单元格中,您只需编写函数:=VLOOKUP(B2,$A$7:$B$9,2,0)