本帖最后由 一剑惊心 于 2014-10-9 15:58 编辑
大致做一个- =TEXT(RIGHT(MAX(SUMIFS(C:C,B:B,"<"&DATE({2013,2014},ROW(2:13),1),B:B,">="&{2013,2014}&-ROW(1:12))/1%%%+({2013,2014}&-ROW(1:12))),5),"e年m月")
复制代码 缩减一下字符- =TEXT(RIGHT(MAX(SUMIFS(C:C,B:B,"<="&B2:B732,B:B,TEXT(B2:B732,">=e-m"))/1%%%+B2:B732),5),"e年m月")
复制代码 不怕卡出翔的话,继续缩减- =TEXT(RIGHT(MAX(IFERROR(SUMIFS(C:C,B:B,"<="&B:B,B:B,TEXT(B:B,">=e-m"))/1%%%+B:B,)),5),"e年m月")
复制代码 再来一个2003版可用的- =TEXT(RIGHT(MAX((SUMIF(B:B,TEXT(B2:B732,">=e-m"),C1)-SUMIF(B:B,">0"&B2:B732,C1))/1%%%+B2:B732),5),"e年m月")
复制代码 |