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?

Tags:

Best Answer

  • Paul H
    Paul H ✭✭✭✭✭✭
    edited 04/13/22 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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!