根据条件列出全部符合条件的单元格
求大神们帮忙看下,条件是:状态为开业,且开业日期距现在大于等于1年。将符合条件的门店列出来,谢谢啦=index(b:b,small(if((c$5:c$10="开业")*(1-ISERR(DATEDIF(d$:d$10,TODAY(),"Y")>0)),row($5:$10),99),row(a1)))&"" 数组公式:
=IFERROR(INDEX(B:B,SMALL(IF((C$5:C$40="开业")*(DATEDIF(D$5:D$40,TODAY(),"Y")>0)*(D$5:D$40<>""),ROW($5:$40)),ROW(A1))),"")
往下拉 =INDEX(B:B,SMALL(IF(($C$5:$C$10=$C$5)*((TODAY()-$D$5:$D$10)/365>=1),ROW($5:$10),100),ROW(A1)))&""
数组公式 数组:=INDEX(B:B,SMALL(((C$5:C20="开业")*(D$5:D20<=EDATE(TODAY(),-12))=0)/1%%+ROW($5:20),ROW(A1)))&""
非数组:=LOOKUP(ROW(A1)-1,COUNTIFS(OFFSET(C$4,,,ROW($1:20)),"开业",OFFSET(D$4,,,ROW($1:20)),"<="&EDATE(TODAY(),-12)),B$5:B24)&"" =IFERROR(INDEX(B:B,AGGREGATE(15,2,ROW($5:$10)/($C$5:$C$10="开业")/(TODAY()>=EDATE(+$D$5:$D$10,12)),ROW(A1))),"")
普通
页:
[1]