在Microsoft Excel 2010中input某些数据后,如何自动复制数据

我需要在Microsoft Excel 2010中复制一定数量的数据。我有两个不同的工作表,即“Master”和“Delivery”。 在“主”表中,我通过连接两个不同的单元格来创build一组独特的ID。 这些唯一ID可能存在或不存在于“交货”表中。

我想为“Master”和“Delivery”表中存在的那些id自动复制某些单元格(传输名称和dod)。 主表单中不存在于发货单中的那些应显示“#N / A”。 也许在excel中有一些公式可以解决这个问题。

表单示例:

母表

job no no. desc unique id id in delivery transport name dod 1acf23 452036 pen 1acf23452036 Y 1acf23 786952 disc 1acf23786952 Y 1acf25 786952 disc 1acf25786952 N 2rfg45 462230 box 1 2rfg45462230 Y 3rfg45 415789 eraser 3rfg45415789 Y 

交货单

 dod transport name job no no desc unique id id in master 01.08.14 brand1 1acf23 452036 pen 1acf23452036 Y 02.07.14 brand1 1acf23 869632 file 1acf23869632 N 20.03.13 brand1 1acf23 786952 disc 1acf23786952 Y 16.06.14 brand1 1acf23 999021 cutter 1acf23999021 N 17.08.13 brand3 2rfg45 462230 box 1 2rfg45462230 Y 01.01.14 brand2 3rfg45 415789 eraser 3rfg45415789 Y 09.05.14 brand3 2rfg45 415789 eraser 2rfg45415789 N 09.05.14 brand3 2rfg45 462230 box 1 2rfg45462230 Y 01.01.14 brand2 1acf23 263246 pencil 1acf23263246 Y 09.05.14 brand3 5thy12 102364 casing 5thy12102364 Y 

我希望我有你的专栏。

对于主人的交通名称:

 =INDEX(Delivery!B:B,MATCH(Master!D2,Delivery!F:F,0)) 

和dod

 =INDEX(Delivery!A:A,MATCH(Master!D2,Delivery!F:F,0)) 

问候

阿克塞尔

看看Excel函数vlookup。 您可能要使用标志,使其只能查找完全匹配。