Using Modified Date in a formula returns #date Expected
Hello, I am trying to determine whether or not a row should be added to a weekly report by trying use the modified system column to calculate the associated Friday.
e.g. It's Tuesday and I make a change, I want my other column 'Report week end date' to display that upcoming Friday.
=IF(WEEKDAY(Modified@row) < 6, DATE(YEAR(Modified@row), MONTH(Modified@row), DAY(Modified@row) + (7 - WEEKDAY(Modified@row)), "Error"))
Just to see, I put "=WEEKDAY(Modified@row)" into the cell and got #DATE EXPECTED.
Can you not use Modified as a DATE type?
Thanks,
Mark
Comments
-
On its own you cannot. You would need to incorporate the DATEONLY function.
=YEAR(DATEONLY(Modified@row))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 213 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!