Week Of Date Formula ( Week of 2/6)
I want to be able to filter all the jobs per the week; Week of function.
Example: Week of 2/6 would automate for any jobs that has a start date between 2/6 and 2/12)
In excel the formula was =IF(G12<G12-WEEKDAY(G12-1),G12,G12-WEEKDAY(G12+7)+1).
How do i convert that to a Smartsheet formula?
(G12 in Smartsheet is _Project Start Date)
Best Answer
-
The WEEKDAY function works the same in Smartsheet so you can literally copy the same formula and replace G12 with your column name
=IF([_Project Start Date]@row < ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row - 1)), [_Project Start Date]@row, ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row + 7)) + 1)
Btw, make sure that the column where you are using this formula is also a date column (aka column property is set to Date)
Answers
-
The WEEKDAY function works the same in Smartsheet so you can literally copy the same formula and replace G12 with your column name
=IF([_Project Start Date]@row < ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row - 1)), [_Project Start Date]@row, ([_Project Start Date]@row - WEEKDAY([_Project Start Date]@row + 7)) + 1)
Btw, make sure that the column where you are using this formula is also a date column (aka column property is set to Date)
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!