[英]How to get the date for the start of the week (Monday) by passing in the current day?
I would like to get the date for the start of the week (start of the week is the Monday) given the current date. 我想获得给定当前日期的一周的开始日期(一周的开始是星期一)。 So for eg if today is 27-Mar-18, then the formula should return 26-Mar-18.
因此,例如,如果今天是18年3月27日,则该公式应返回18年3月26日。 If today is 31-Mar-18, then the formula should still give me 26-Mar-18.
如果今天是18年3月31日,那么该公式仍然应该给我18年3月26日。 If the current date was 24-Mar-18, the formula should return 19-Mar-18.
如果当前日期为18年3月24日,则公式应返回18年3月19日。
How would I achieve this? 我将如何实现?
Thanks. 谢谢。
尝试使用此公式来计算A2中的日期,
=A2-WEEKDAY(A2, 2)+1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.