自动填充日期,但跳过周末


11

我需要自动填写一些日期,这很容易,而且我知道该怎么做。但是,我不知道如何跳过周末。我希望它自动填充,跳过周末并跳转到星期一。

Answers:


12

这可以通过以下条件语句来完成: WEEKDAY

假设您将2015年5月7日放在A2中,并且条件公式

=IF(WEEKDAY(A2)=6,A2+3,A2+1) 

在A3中。(工作日= 6表示星期五,此后将跳过两天)。拖下去,你会看到

5/7/2015
5/8/2015
5/11/2015
5/12/2015
5/13/2015
5/14/2015
5/15/2015
5/18/2015

等等。


您也如何考虑一系列假期?
Dhruv Ghulati

5

A1:A7的以下公式

=WORKDAY.INTL("1/05/2015",Row(),"0000011")

退货

Tuesday, January 6, 2015  
Wednesday, January 7, 2015  
Thursday, January 8, 2015  
Friday, January 9, 2015  
Monday, January 12, 2015  
Tuesday, January 13, 2015  
Wednesday, January 14, 2015 

参考
WORKDAY.INTL-文档编辑器帮助

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.