Can I use the "IF" function to create categories in a single column?
I'm doing this formula but I only received the first two criteria. What I'm doing wrong
=IF([Days to Target Due Date]@row > 60, "More than 60 days for Due date", IF([Days to Target Due Date]@row <= 60, "Less than 60 days for due date", (IF([Days to Target Due Date]@row <= 30, "Less than 30 days for due date", IF([Days to Target Due Date]@row <= 5, "Less than 5 days for due date", 0)))))
Best Answers
-
Hi,
Nested IFs go in order and the formula stops when it finds a true statement. You have to put your statements in order for it to work. Try:
=IF([Days to Target Due Date]@row > 60, "More than 60 days for Due date", IF([Days to Target Due Date]@row <= 5, "Less than 5 days for due date", IF([Days to Target Due Date]@row <= 30, "Less than 30 days for due date", "Less than 60 days for due date")))
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Glad you found a solution. Thank you for contributing to the Community.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Answers
-
Hi,
Nested IFs go in order and the formula stops when it finds a true statement. You have to put your statements in order for it to work. Try:
=IF([Days to Target Due Date]@row > 60, "More than 60 days for Due date", IF([Days to Target Due Date]@row <= 5, "Less than 5 days for due date", IF([Days to Target Due Date]@row <= 30, "Less than 30 days for due date", "Less than 60 days for due date")))
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Thanks!! works perfect!
-
Glad you found a solution. Thank you for contributing to the Community.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!