比如今天是周日,显示的则为周五,有哪个函数可以实现么,节假日也跳,不只是周日
=INDEXOF(GREPARRAY(range(DATEDELTA(today(),-1),DATEDELTA(today(),-3),-1),WEEKDAY(item)!=0 && WEEKDAY(item)!=6),1)
IF(WEEKDAY(TODAY())=0,DATEDELTA(TODAY(),-2),IF(WEEKDAY(TODAY())=1,DATEDELTA(TODAY(),-3),DATEDELTA(TODAY(),-1)))
周日和周一,都显示上周五
WEEKDAY()函数周日返回0,所以当周日时,往前推2天,周一往前推3天,其他,当前天往前推1天
看下这个,判断是不是工作日
https://help.fanruan.com/finereport/doc-view-3197.html
结合这个帮助文档说明,再看看-https://help.fanruan.com/finereport/doc-view-1493.html