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
- 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
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!