我在 Excel 中有两个不同的工作表,所有第 1 行单元格中的标题都相同(a1 = id、b1 = 名称、c1 = 价格)。我的问题是,有没有办法将数据(如名称)从一个工作表导入到另一个工作表中,其中两个工作表中的“id”相同。
eg.
sheet 1 sheet2
ID Name Price ID Name Price
xyz Bag 20 abc 15
abc jacket 15 xyz 20
那么有没有办法将工作表 1 中的“名称”添加到工作表 2 中的“名称”,其中工作表 1 中的“ID”=工作表 2 中的“ID”?
当然无需复制和粘贴
谢谢
VLookup
You can do it with a simple VLOOKUP formula. I've put the data in the same sheet, but you can also reference a different worksheet. For the price column just change the last value from 2 to 3, as you are referencing the third column of the matrix "A2:C4".
外部参考
引用一个单元格same工作簿使用以下模式:
<Sheetname>!<Cell>
Example:
Table1!A1
引用 a 的单元格不同的工作簿使用此模式:
[<Workbook_name>]<Sheetname>!<Cell>
Example:
[MyWorkbook]Table1!A1
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)