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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!