Excel formula to output date excluding weekends

微笑、不失礼 提交于 2019-12-24 17:32:23

问题


I need an Excel formula that starts with 1/1/2016 and can output the date in dd/mm/yyyy format for the rest of the year excluding weekends.

I did have this: =WORKDAY.INTL(1/1/2016,365,2) but it only outputs 511 which is 25/05/1901 and that is irrelevant for me.


回答1:


I think the problem lies in the fact that you use 1/1/2016 in the formula directly, and it is interpreted as a number instead of a date.

The following setup worked for me:

A1 =1/1/2016     B1 =WORKDAY.INTL(A$1, 1, 1)
                 B2 =WORKDAY.INTL(A$1, 2, 1)
                 B3 =WORKDAY.INTL(A$1, 3, 1)

(Also note that the last parameter, which is 2 in your case, makes Excel assume weekends fall on Sunday and Monday).



来源:https://stackoverflow.com/questions/31743240/excel-formula-to-output-date-excluding-weekends

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!