本帖最后由 hellenlxy 于 2024-10-17 11:13 编辑
请问老师A列至F列的公式该怎样改才能自动下拉呢
A列=IF($D4="合计","",IFERROR(INDEX(明细!B:B,SMALL(IF(明细!$L$2:$L$21169=$G$2,ROW($2:$19978)),ROW(A1))),""))
B列=IF($D4="合计","",IFERROR(INDEX(明细!I:I,SMALL(IF(明细!$L$2:$L$21169=$G$2,ROW($2:$19978)),ROW(A1))),""))
C列=IF($D4="合计","",IFERROR(INDEX(明细!J:J&明细!K:K,SMALL(IF(明细!$L$2:$L$21169=$G$2,ROW($2:$19978)),ROW(B1))),""))
D列=IF(D4="合计","",IF(AND(B3<>"",B4<>"",B5=""),"合计",IFERROR(INDEX(明细!L:L&明细!M:M,SMALL(IF(明细!$L$2:$L$19415=$G$2,ROW($2:$15978)),ROW(C1))),"")))
|