如何在Excel工作表中实现条件单元格复制

时间:2014-12-18 21:35:10

标签: excel vba excel-vba copy-paste worksheet-function

我们有一个报告,用于识别(例如)A1" 270002"中的客户编号。名称B1" 4K Cartage,Inc。后面跟着PO编号 我需要带A1& B2和"复制"进入新专栏J& K.
但是,如果您在下面看到,每个客户端列表都不同....我的整个工作表超过75000行。有些客户有5个记录,有些则有几百个。

任何事情都会非常感激...谢谢!

270002  4K CARTAGE, INC.                            
    VCINV   2/13/2014   Suspense    Invoice $0.00   $0.01   0   KG
    VCINV   3/6/2014    Suspense    Invoice $0.00   $0.01   0   JL
    VCINV   11/26/2014  Suspense    Invoice $0.00   $0.01   0   JK
REMOVE  APCM    12/11/2014  Next Run    Credit Memo $0.00   $0.03-  0   LD
10000   A & S SERVICES GROUP, LLC                           
80000031A   VCINV   3/20/2014   03/07/14    4021225 $0.00   $927.50 0   KG
80000041A   VCINV   3/20/2014   03/07/14    4021974 $0.00   $927.50 0   KG
80000049A   VCINV   3/20/2014   03/07/14    1402049302  $0.00   $656.25 0   KG
80000065A   VCINV   4/10/2014   04/13/14    4022480 $0.00   $927.50 0   JB
80000068A   VCINV   4/10/2014   04/13/14    4022331 $0.00   $927.50 0   JB
80000066A   VCINV   4/10/2014   04/06/14    4022347 $0.00   $932.50 0   JB
80000074A   VCINV   4/10/2014   04/06/14    4022532 $0.00   $286.50 0   JB
80000075A   VCINV   4/10/2014   04/06/14    4022534 $0.00   $286.50 0   JB
80000107A   VCINV   4/10/2014   04/13/14    4022740 $0.00   $586.75 0   JB
80000116A   VCINV   4/10/2014   04/06/14    4023306 $0.00   $585.75 0   JB
80000117A   VCINV   4/10/2014   04/06/14    4023308 $0.00   $585.75 0   JB
80000118A   VCINV   4/10/2014   04/06/14    4023307 $0.00   $585.75 0   JB
80000119A   VCINV   4/10/2014   04/06/14    4023309 $0.00   $585.75 0   JB
80000120A   VCINV   4/10/2014   04/13/14    4023304 $0.00   $585.75 0   JB
80000121A   VCINV   4/10/2014   04/13/14    4023305 $0.00   $558.75 0   JB
80000130A   VCINV   4/10/2014   04/20/14    4023651 $0.00   $585.75 0   JB
80000132A   VCINV   4/10/2014   04/20/14    4023650 $0.00   $595.75 0   JB

1 个答案:

答案 0 :(得分:0)

使用公式:

=IF(ISERROR(MATCH("$*",$A1:$I1,0)),A1,"")