Help with IF formula - 3 options to return
Hello Smartsheet Community,
I'm struggling with something that I guess should be a very simple formula. I need to assign one of 3 values to the row based on the following rules:
- If Cutoff Date > Event Date, return "Pre-"
- If Cutoff Date < Event Date AND Weeks Post Cutoff Date </=8, return "Post1"
- If Cutoff Date < Event Date AND Weeks Post Cutoff Date >8, return "Post
Weeks post Cutoff Date is calculated using a formula (difference between two dates).
The formula I wrote is as follows but it returns as #UNPARSEABLE.
=IF([Event Date]@row <Cutoff Date]@row, "Pre-"), IF(AND([Event Date]@row >[Cutoff Date]@row, [Weeks Post Cutoff Date]@row <=8), "Post1"), IF(AND([Event Date]@row > [Cutoff Date]@row, [Weeks Post Cutoff Date]@row >8), "Post2")
I feel like I'm missing something obvious.
Thank you!
Best Answer
-
OK, problem solved now. It looks like I had extra closing parenthesis. Also simplified the formula a bit:
=IF([Weeks post Cutoff Date]@row <0, "Pre-", IF([Weeks post Cutoff Date]@row >8), "Post2", "Post1"))
Now it works fine.
Answers
-
OK, problem solved now. It looks like I had extra closing parenthesis. Also simplified the formula a bit:
=IF([Weeks post Cutoff Date]@row <0, "Pre-", IF([Weeks post Cutoff Date]@row >8), "Post2", "Post1"))
Now it works fine.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!