Stuck on Nested IF statement.
Hello! Somewhat new to Smartsheet and having a small struggle with figuring out my syntax.
The below statement functions when "ordered" is selected, but if "Onsite" is selected nothing happens. I'm not getting an error of any kind. I can swap out "Ordered" with "Onsite" and it will work. I cant seem to get the second IF functioning.
=IF(Status@row = "ordered", DATE(YEAR([Order Date | Warranty Start Date]@row) + 1, MONTH([Order Date | Warranty Start Date]@row) + 7, DAY([Order Date | Warranty Start Date]@row, IF(Status@row = "Onsite", DATE(YEAR([Order Date | Warranty Start Date]@row) + 1, MONTH([Order Date | Warranty Start Date]@row) + 7, DAY([Order Date | Warranty Start Date]@row, ""))))))
Thank you!
Best Answer
-
Try this:
=IF(Status@row = "ordered", DATE(YEAR([Order Date | Warranty Start Date]@row) + 1, MONTH([Order Date | Warranty Start Date]@row) + 7, DAY([Order Date | Warranty Start Date]@row)), IF(Status@row = "Onsite", DATE(YEAR([Order Date | Warranty Start Date]@row) + 1, MONTH([Order Date | Warranty Start Date]@row) + 7, DAY([Order Date | Warranty Start Date]@row, "")), ""))
I think you just had misplaced parentheses.
Answers
-
Try this:
=IF(Status@row = "ordered", DATE(YEAR([Order Date | Warranty Start Date]@row) + 1, MONTH([Order Date | Warranty Start Date]@row) + 7, DAY([Order Date | Warranty Start Date]@row)), IF(Status@row = "Onsite", DATE(YEAR([Order Date | Warranty Start Date]@row) + 1, MONTH([Order Date | Warranty Start Date]@row) + 7, DAY([Order Date | Warranty Start Date]@row, "")), ""))
I think you just had misplaced parentheses.
-
@Austin Smith Thank you! This did it!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!