Date Range Formula Assistance
Is there a formula that moves entries to the next month if it falls within a certain date range? For instance, entries from February 16th - March 15th would be placed in the April cohort. I would like this formula to be permanent each month.
Answers
-
For me, time intelligence isn't very nice to play with in Smartsheet. Without a calendar table, I feel that it's kind of tragic doing math on dates. So I heartily recommend you build a calendar table as a sheet in Smartsheet so that you have something to look up against. (I have one that uses the ETL of Power Query in Excel to accept my inputs for a date range, and I use Data Shuttle to load that info into a sheet.)
If you don't want to do that, you are more than welcome to give this a try: in your example, the return isn't "April" but rather the number 4. You could conceivably make a lookup table where 4 = April and so on. I'm certain there's a more elegant way to do this than what I came up with. But like I said… tragic. And it's late in the day so my brain wants to be done. 😂=IF(IF(DAY(Date@row) > 15, MONTH(Date@row) + 2, MONTH(Date@row) + 1) > 12, IF(DAY(Date@row) > 15, MONTH(Date@row) + 2, MONTH(Date@row) + 1) - 12, IF(DAY(Date@row) > 15, MONTH(Date@row) + 2, MONTH(Date@row) + 1))
If this answer resolves your question, please help the Community by marking it as an accepted answer. I'd also be grateful for your response - "Insightful"or "Awesome" reactions are much appreciated. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 452 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!