Formula to return the week ending date
Hi,
I have a column of dates and I need a formula to work out the week ending date from it, assuming the last day of the week is Friday. Can anyone help?
Thanks
Best Answer
-
The below should work.
This assumes you want Saturday to return the next weeks Friday.
=IF(WEEKDAY([DATE]@row) = 7, [DATE]@row + 6, [DATE]@row + (6 - WEEKDAY([DATE]@row)))
Answers
-
I've managed to answer my own question. It occurred to me just after posting this. For anyone that's interested the formula is...
=Date@row + (6 - WEEKDAY(Date@row))
Adjust that 6 to correspond to the date you want to be counted as your week end date.
EDIT: This did not work for all days of the week. See Leibel S's answer for the solution
-
The below should work.
This assumes you want Saturday to return the next weeks Friday.
=IF(WEEKDAY([DATE]@row) = 7, [DATE]@row + 6, [DATE]@row + (6 - WEEKDAY([DATE]@row)))
-
Thank you Leibel S. That worked perfectly.
-
Looking for a formula based off of a date column, Sunday through Saturday dates listed, and return the following Saturday (for Sun-Friday) or that exact date if a Saturday is entered.
Help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!