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
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!