有个错误,更正的名称定义如下:
blankrang=OFFSET(data!date,0,200)
co_1=IF(OR(data!$G$2={"公司1","全部"}),OFFSET(data!date,0,1),blankrang)
co_2=IF(OR(data!$G$2={"公司2","全部"}),OFFSET(data!date,0,2),blankrang)
co_3=IF(OR(data!$G$2={"公司3","全部"}),OFFSET(data!date,0,3),blankrang)
date=OFFSET(x,MATCH(start,x,0)-1,0,MATCH(end,x,0)-MATCH(start,x,0)+1)
end=data!$F$2
end_date=OFFSET(x,MATCH(start,x,0)-1,0,ROWS(x)-MATCH(start,x,0)+1)
start=data!$E$2
total=data!$H$3
tt=IF(total,MMULT(OFFSET(data!date,0,1,,3),{1;1;1}),blankrang)
x=OFFSET(data!$A$2,0,0,COUNTA(data!$A:$A)) |