【问题标题】:How to copy data automatically once certain data is input in Microsoft Excel 2010在 Microsoft Excel 2010 中输入某些数据后如何自动复制数据
【发布时间】:2014-08-10 14:08:35
【问题描述】:

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

我想为“主”和“交付”表中存在的那些 ID 自动复制某些单元格(运输名称和 d.o.d)。主表中不存在于交货单中的应显示“#N/A”。或许excel里面有一些公式或许能解决问题。

工作表示例:

主表

job no      no.      desc      unique id    id in delivery  transport name  d.o.d

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   

交货单

d.o.d   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

【问题讨论】:

    标签: excel excel-formula


    【解决方案1】:

    我希望你的专栏是正确的。

    对于 Master 中的传输名称:

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

    对于 d.o.d

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

    问候

    阿克塞尔

    【讨论】:

      【解决方案2】:

      看看 Excel 函数 vlookup。您可能希望使用使其仅查找完全匹配的标志。

      【讨论】:

      • VLOOKUP 不能向左看,只能向右看。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多