|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
本帖最后由 oliverpep 于 2015-3-5 19:46 编辑
第三题:
=LOOKUP(TODAY(),IF(WEEKDAY(DATE(YEAR(TODAY()),1,0)+ROW(INDIRECT("1:"&TODAY()-DATE(YEAR(TODAY()),1,1))),2)=7,DATE(YEAR(TODAY()),1,0)+ROW(INDIRECT("1:"&TODAY()-DATE(YEAR(TODAY()),1,1))),""))
第四题:
=TEXT(INDEX(SMALL(IF(WEEKDAY((DATE(YEAR(TODAY()),11,0)+ROW(1:31)),2)=4,DATE(YEAR(TODAY()),11,0)+ROW(1:31),10000000),ROW(1:31)),4),"yyyy-m-d")
第五题:
=SUM((WEEKDAY(DATE(2011,5,15)+ROW(INDIRECT("1:"&DATE(2011,10,1)-DATE(2011,5,16))),2)<>{1,6})*1)
第六题:
=INT(MATCH(TODAY(),DATE(YEAR(TODAY()),1,0)-WEEKDAY(DATE(YEAR(TODAY()),1,0),2)+1+ROW(1:378)-1)/7)+1 |
|