记录,研究一下先~稍后给答案~
任意单元格输入公式:
=SUMPRODUCT(N(WEEKDAY(DATE(YEAR(TODAY()),MONTH(TODAY()),ROW(INDIRECT(DAY(NOW())&":"&DAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,0))))))<>2))
假设那个日期放在A1,公式可为
=SUMPRODUCT((MONTH(A1+ROW(1:31)-1)=MONTH(A1))*(MOD(A1+ROW(1:31)-1,7)<>2))
还有,当天不算的话,那个-1都不要了
=SUMPRODUCT((MONTH(A1+ROW(1:31))=MONTH(A1))*(MOD(A1+ROW(1:31),7)<>2))