Excel 如何使用其他工作表中的数据设置外键?
我在使用ms excel时遇到一些问题,因为我想使用其他图纸数据设置外键。我尝试过使用vlookup,但它返回Excel 如何使用其他工作表中的数据设置外键?,excel,excel-2010,Excel,Excel 2010,我在使用ms excel时遇到一些问题,因为我想使用其他图纸数据设置外键。我尝试过使用vlookup,但它返回#值 下面是我的数据示例: 表1 Key data1 data2 john doe alex sanchez will smith Key data1 data2 2 john doe 1 alex sanchez 3 will smith 第2页 Key data1 data2 1 alex
#值代码>
下面是我的数据示例:
表1
Key data1 data2
john doe
alex sanchez
will smith
Key data1 data2
2 john doe
1 alex sanchez
3 will smith
第2页
Key data1 data2
1 alex sanchez
2 john doe
3 will smith
我期望的结果是:
表1
Key data1 data2
john doe
alex sanchez
will smith
Key data1 data2
2 john doe
1 alex sanchez
3 will smith
抱歉,我的英语不好如果数据1和数据2的组合对每个键都是唯一的,则可以连接2以创建一个额外的键来填充键值
=CONCATENATE(B2,C2)
您可能希望以某种方式将它们分开:B2&“”&C2
或类似的方式。否则,在处理多位数数字时可能会出现歧义。那么,如果数据值是文本,该如何处理呢?@jsheeran给出了很好的建议。即使数据是文本值,其工作方式也是相同的。