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.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!