简体   繁体   中英

Excel - Equation to produce Sunday date based on week

I am working on a time sheet. There is a cell that requires a date based on the pay period. That date will always be Sunday date of that week. I am trying to create a formula that will look at today's date and report that Sunday. For an example last week, if I filled out my time sheet last Friday the 25th it would report Sunday the 27th. Does any one know how to create this equation with out populating extra data on a sheet.

=TODAY()+(7-(WEEKDAY(TODAY())-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