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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!