汇总并查询
支持:客户名称 或 委托单号 或 提单号 或 船名 四种查询方式;
=LET(_汇总,VSTACK(IFERROR(FILTER(操作01!A4:AX1000,操作01!A4:A1000<>""),""),IFERROR(FILTER(操作02!A4:AX1000,操作02!A4:A1000<>""),""),IFERROR(FILTER(操作03!A4:AX1000,操作03!A4:A1000<>""),""),IFERROR(FILTER(操作04!A4:AX1000,操作04!A4:A1000<>""),""),IFERROR(FILTER(操作05!A4:AX1000,操作05!A4:A1000<>""),""),IFERROR(FILTER(操作06!A4:AX1000,操作06!A4:A1000<>""),"")),_返回区域,CHOOSECOLS(_汇总,1,2,3,4,5,6,7,8,9,10,11,14,16,17,18,50),_客户列,CHOOSECOLS(_返回区域,3),_委托单号列,CHOOSECOLS(_返回区域,4),_提单号列,CHOOSECOLS(_返回区域,5),_船名列,CHOOSECOLS(_返回区域,6),FILTER(_返回区域,((_客户列=$E$1)+(_委托单号列=$E$1)+(_提单号列=$E$1)+(_船名列=$E$1))))
===============================================================
只汇总,不查询
=LET(_汇总,VSTACK(IFERROR(FILTER(操作01!A4:AX1000,操作01!A4:A1000<>""),""),IFERROR(FILTER(操作02!A4:AX1000,操作02!A4:A1000<>""),""),IFERROR(FILTER(操作03!A4:AX1000,操作03!A4:A1000<>""),""),IFERROR(FILTER(操作04!A4:AX1000,操作04!A4:A1000<>""),""),IFERROR(FILTER(操作05!A4:AX1000,操作05!A4:A1000<>""),""),IFERROR(FILTER(操作06!A4:AX1000,操作06!A4:A1000<>""),"")),CHOOSECOLS(_汇总,1,2,3,4,5,6,7,8,9,10,11,14,16,17,18,50))
================================================
函数只写到 各分表的1000行,分表超行会漏数据
|