Formula to return 30,60, or 90 if Date is within 30,60,90 days
Hello,
I need a formula to return a value of 30, 60, or 90 if the due date is within 30,60,90 days of a due date. I am going to use this column to group a report to show each bucket of items due in the time frame.
I can get the formula to return the correct value if the date is within 30 days, but am not able to nest IF statements to return if the date is 60 days out, and 90 days out.
Here is the formula I used for the 30 days:
=IF(AND([End Date]@row <= TODAY(30), [End Date]@row >= TODAY()), "30", 0)
How would I nest additional criteria for 60 and 90 days?
Best Answer
-
Something like this
=IF([End Date]@row < TODAY(0), "0", IF([End Date]@row < TODAY(30), "30", IF([End Date]@row < TODAY(60), "60", IF([End Date]@row < TODAY(90), "90"))))
Answers
-
Something like this
=IF([End Date]@row < TODAY(0), "0", IF([End Date]@row < TODAY(30), "30", IF([End Date]@row < TODAY(60), "60", IF([End Date]@row < TODAY(90), "90"))))
-
Ah, I see. I made mine too complicated from the start.
Thank you @Paul H
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 464 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 60 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 40 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!