简体   繁体   English

不含假期的一周第一天的Excel公式

[英]Excel formula for first day of the week without holidays

Want to know the excel formula for the first business day of the week without holidays. 想要知道一周中第一个工作日(不含假期)的excel公式。 So far I have 到目前为止,我有

=D2-WEEKDAY(D2,2)+1 = D2-WEEKDAY(D2,2)+1

where D2 is today's date. D2是今天的日期。 This formula is giving me the first day of the week but I also want it to skip holidays. 这个公式给了我一周的第一天,但​​我也希望它跳过假期。

You want to wrap the return date in WORKDAY and locate a list of holidays(I put mine in column F) 您想将返回日期包装在WORKDAY中并找到假期列表(我将我放在F列中)

=WORKDAY(D2-WEEKDAY(D2,2),1,F1:F8)

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM