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
- 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!