[英]How to get the Last working day of the Week for any Given date
我需要计算 Excel 表中给出的任何日期的一周的最后一个工作日(星期五)... 示例::如果我的日期是 09-March-2016,最后一个工作日将是 11-March- 2016 年,类似地,如果我在 Excel 单元格中的日期是 01-March-2016,最后一个工作日将是 04-March-2016,任何人都可以帮我计算公式,以便我可以进一步工作请eeeeeeee...真的需要你的帮助团队:)
In A1 Cell在 A1 单元格中
01-03-2016 01-03-2016
In B1 Cell在 B1 单元格中
=A1-WEEKDAY(A1,3)+IF(WEEKDAY(A1,3)>4,11,4) =A1-WEEKDAY(A1,3)+IF(WEEKDAY(A1,3)>4,11,4)
A1 Cell = Your date (you need last working day in this week) A1 单元格 = 您的日期(您需要本周的最后一个工作日)
B1 Cell = A1+(6-WEEKDAY(A1)) - result (in case that friday is last working date) B1 单元格 = A1+(6-WEEKDAY(A1)) - 结果(如果星期五是最后一个工作日期)
NOTICE: B1 must be formated as date!注意:B1 必须格式化为日期!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.