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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!