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!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 440 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!