简体   繁体   中英

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. If today is 31-Mar-18, then the formula should still give me 26-Mar-18. If the current date was 24-Mar-18, the formula should return 19-Mar-18.

How would I achieve this?

Thanks.

尝试使用此公式来计算A2中的日期,

=A2-WEEKDAY(A2, 2)+1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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