我想设定一个任务,我说

“我的任务从2011年5月XX日开始,到14个工作日后结束”

如何自动将此日期范围放入Excel工作表中?

所以,我可以这样写吗:

A1Cell: 2 May 2011
A2Cell: =$A1+1 (should be a WorkDay)
A3Cell: =$A2+1 (should be a WorkDay)
A4Cell: =$A3+1 (should be a WorkDay)
A5Cell: =$A4+1 (should be a WorkDay)
A6Cell: =$A5+1 (should be a WorkDay, as this is Saturday, it should automatically take it as the next workday)


可以在Excel中实现上述类似功能吗?还是如果有VBA代码可用?

我能得到的是这样的:

=IF($A5=(WORKDAY($A5,0)),$A5+1,$A5+3)


但这似乎不起作用。

最佳答案

查看公式,将工作天数(A列)添加到今天

=WORKDAY(TODAY(),A1)

关于excel - 如何在Excel中输入工作日范围?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7523146/

10-11 07:13