你这个用宏比较好,用公式方法比较笨,可以参考下:
=FILTER(HSTACK(SCAN(NA,TAKE(VSTACK(HSTACK(SHEETSNAME(客户一!B9:C10),(客户一!B9:C10)),HSTACK(SHEETSNAME(客户二!B1:C9),客户二!B9:C12),HSTACK(SHEETSNAME(客户三!B9:C195),客户三!B9:C195),HSTACK(SHEETSNAME(客户四!B8:C12),客户四!B8:C12),HSTACK(SHEETSNAME(客户五!B10:C11),客户五!B10:C11),HSTACK(SHEETSNAME(客户六!B9:C12),客户六!B9:C12),HSTACK(SHEETSNAME(客户七!B9:C27),客户七!B9:C27),HSTACK(SHEETSNAME(客户八!B62:C70),客户八!B62:C70),HSTACK(SHEETSNAME(客户九!B9:C14),客户九!B9:C14)),,1),LAMBDA(a,b,IFERROR(b,a))),TAKE(VSTACK(HSTACK(SHEETSNAME(客户一!B9:C10),(客户一!B9:C10)),HSTACK(SHEETSNAME(客户二!B1:C9),客户二!B9:C12),HSTACK(SHEETSNAME(客户三!B9:C195),客户三!B9:C195),HSTACK(SHEETSNAME(客户四!B8:C12),客户四!B8:C12),HSTACK(SHEETSNAME(客户五!B10:C11),客户五!B10:C11),HSTACK(SHEETSNAME(客户六!B9:C12),客户六!B9:C12),HSTACK(SHEETSNAME(客户七!B9:C27),客户七!B9:C27),HSTACK(SHEETSNAME(客户八!B62:C70),客户八!B62:C70),HSTACK(SHEETSNAME(客户九!B9:C14),客户九!B9:C14)),,-2)),TAKE(HSTACK(SCAN(NA,TAKE(VSTACK(HSTACK(SHEETSNAME(客户一!B9:C10),(客户一!B9:C10)),HSTACK(SHEETSNAME(客户二!B1:C9),客户二!B9:C12),HSTACK(SHEETSNAME(客户三!B9:C195),客户三!B9:C195),HSTACK(SHEETSNAME(客户四!B8:C12),客户四!B8:C12),HSTACK(SHEETSNAME(客户五!B10:C11),客户五!B10:C11),HSTACK(SHEETSNAME(客户六!B9:C12),客户六!B9:C12),HSTACK(SHEETSNAME(客户七!B9:C27),客户七!B9:C27),HSTACK(SHEETSNAME(客户八!B62:C70),客户八!B62:C70),HSTACK(SHEETSNAME(客户九!B9:C14),客户九!B9:C14)),,1),LAMBDA(a,b,IFERROR(b,a))),TAKE(VSTACK(HSTACK(SHEETSNAME(客户一!B9:C10),(客户一!B9:C10)),HSTACK(SHEETSNAME(客户二!B1:C9),客户二!B9:C12),HSTACK(SHEETSNAME(客户三!B9:C195),客户三!B9:C195),HSTACK(SHEETSNAME(客户四!B8:C12),客户四!B8:C12),HSTACK(SHEETSNAME(客户五!B10:C11),客户五!B10:C11),HSTACK(SHEETSNAME(客户六!B9:C12),客户六!B9:C12),HSTACK(SHEETSNAME(客户七!B9:C27),客户七!B9:C27),HSTACK(SHEETSNAME(客户八!B62:C70),客户八!B62:C70),HSTACK(SHEETSNAME(客户九!B9:C14),客户九!B9:C14)),,-2)),,-1)>0) |