Formula HELP
Answers
-
Hi there,
I'm looking for something similar and am stuck on my formula. We have a class ("LCST") that happens throughout the work week (M-F); and we pull a report every Friday with the range of the prior Friday through current week's Thursday. For example, on today 11/08/24, we would run the report for (last Friday) 11/1 - (yesterday, Thursday) 11/7.
So far, I have the formula as:
=IF(OR(Class@row = "DX Traditions", Class@row = "LMTR"), [Start Date]@row + 1, IF(Class@row = "LCST", ([Start Date]@row + 6 - WEEKDAY([Start Date]@row))))
This formula works okay as long as the start date is not a Friday. See the below highlighted in yellow — a Friday date remains the same. Can anyone help incorporate what to do if the start date IS a Friday? How can I get the Aftercare column to reflect the following Friday?
-
We can throw in a special case just for Fridays:
=IF(OR(Class@row = "DX Traditions", Class@row = "LMTR"), [Start Date]@row + 1, IF(Class@row = "LCST", IF(WEEKDAY([Start Date]@row) = 6, [Start Date]@row + 7, ([Start Date]@row + 6 - WEEKDAY([Start Date]@row)))))
-
THANK YOU SO MUCH! This worked :) I appreciate the help.
-
Happy to help! 🙂
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!