Populate a text value based on a date range

Hi All,
I'm fairly new to Smartsheet and I'm trying to set a text value based on a date range. Reading through all the responses it seems possible but a little messy. All I'm trying to do is automatically populate a Quarter value based on custom ranges. No cross sheet references, all in the same sheet. When I only use two statements, it's working fine:
=IF(AND([SYSTEM: TLH Request Form Timestamp]@row >= DATE(2020, 1, 1), [SYSTEM: TLH Request Form Timestamp]@row <= DATE(2020, 3, 31)), "Winter", IF(AND([SYSTEM: TLH Request Form Timestamp]@row >= DATE(2020, 4, 1), [SYSTEM: TLH Request Form Timestamp]@row <= DATE(2020, 6, 30)), "Spring", "Test"))
When I use the needed 4 statements, I get #UNPARSEABLE
=IF(AND([SYSTEM: TLH Request Form Timestamp]@row >= DATE(2020, 1, 1), [SYSTEM: TLH Request Form Timestamp]@row <= DATE(2020, 3, 31)), "Winter", IF(AND([SYSTEM: TLH Request Form Timestamp]@row >= DATE(2020, 4, 1), [SYSTEM: TLH Request Form Timestamp]@row <= DATE(2020, 6, 30)), “Spring", IF(AND([SYSTEM: TLH Request Form Timestamp]@row >= DATE(2020, 7, 1), [SYSTEM: TLH Request Form Timestamp]@row <= DATE(2020, 8, 31)), “Summer”, IF(AND([SYSTEM: TLH Request Form Timestamp]@row >= DATE(2020, 9, 1), [SYSTEM: TLH Request Form Timestamp]@row <= DATE(2020, 12, 31)), “Autumn”, “Broken”))
I'm perplexed, does anyone see anything I'm doing wrong?
Best,
Cheryl
Best Answer
-
It looks like you switched over to "smart quotes" right around when you started “Spring". Notice that the first is slanted and the second is not? The slanted quotes show open vs closed quotes and come from using programs such as Word. After “Spring" you start using exclusively "smart quotes". Try deleting them and then retyping them directly into Smartsheet and see if that helps.
Answers
-
It looks like you switched over to "smart quotes" right around when you started “Spring". Notice that the first is slanted and the second is not? The slanted quotes show open vs closed quotes and come from using programs such as Word. After “Spring" you start using exclusively "smart quotes". Try deleting them and then retyping them directly into Smartsheet and see if that helps.
-
That worked! Thanks so much Paul, I appreciate it!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 516 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!