本帖最后由 apirl2008 于 2014-10-22 15:01 编辑
- =TEXT(LOOKUP(,0/(MAX(MMULT(TRANSPOSE(ROW(A2:A731))^0,(DATE(YEAR(B2:B731),MONTH(B2:B731),1)=DATE(2013,COLUMN(A1:X1),1))*C2:C731))=MMULT(TRANSPOSE(ROW(A2:A731))^0,(DATE(YEAR(B2:B731),MONTH(B2:B731),1)=DATE(2013,COLUMN(A1:X1),1))*C2:C731)),DATE(2013,COLUMN(A1:X1),1)),"yyyy年M月")
复制代码 居然有人说这是送分题,我怎么解的这么的费劲呢?275个字符,好长啊。。。。
- =TEXT(DATE(2013,MATCH(MAX(SUMIFS(C2:C731,B2:B731,">="&DATE(2013,COLUMN(A1:X1),1),B2:B731,"<"&DATE(2013,COLUMN(A1:X1)+1,1))),SUMIFS(C2:C731,B2:B731,">="&DATE(2013,COLUMN(A1:X1),1),B2:B731,"<"&DATE(2013,COLUMN(A1:X1)+1,1)),),1),"yyyy年M月")
复制代码 省了一点点,236个字符,继续省
- =TEXT(MOD(MAX(SUMIFS(C2:C731,B2:B731,">="&DATE(2013,COLUMN(A1:X1),1),B2:B731,"<"&DATE(2013,COLUMN(A1:X1)+1,1))/1%%%+DATE(2013,COLUMN(A1:X1),1)),10^6),"yyyy年M月")
复制代码
一下子又省掉了几十个字符,比吃肉还开心呢,哈,继续省
- =MOD(MAX(SUMIFS(C2:C731,B2:B731,">="&DATE(2013,COLUMN(A1:X1),1),B2:B731,"<"&DATE(2013,COLUMN(A1:X1)+1,1))/1%%%+DATE(2013,COLUMN(A1:X1),1)),10^6)
复制代码
去掉外层的text,144个字符,能过关么?日期格式直接用设置单元格来解决吧。。。。。没办法了、、、、、
- =TEXT(MOD(MAX(MMULT(TRANSPOSE(ROW(A2:A731))^0,(IFERROR(DATEDIF("2013/1/1",$B$2:$B$731,"M"),4^8)+1=COLUMN(A1:X1))*C2:C731)/1%%%+DATE(2013,COLUMN(A1:X1),1)),10^6),"yyyy年M月")
复制代码
额。。。。。没省下来,又涨了一些,171字符
- =TEXT(RIGHT(MAX(MMULT(TRANSPOSE(ROW(A2:A731))^0,(IFERROR(DATEDIF("2013/1/1",$B$2:$B$731,"M"),4^8)+1=COLUMN(A1:X1))*C2:C731)/1%%%+DATE(2013,COLUMN(A1:X1),1)),5),"yyyy年m月")
复制代码
决定再也不想了,坐等优秀答案(再想就剁手!)
|