Problem with returning a result when between 31 and 90 days...

Options

I have a sheet that I am trying to return a 1 if the due date is within the next 30 days, a 2 if the due date is between 31 and 90 days, and a 3 if the due date is over 90 days. The formula below returns the 1 correctly but gives me an #Incorrect Argument error for the others. Can anyone let me know what I am doing wrong? Thanks so much in advance!


=IF([Due Date]@row <= TODAY(+30), 1, IF(AND([Due Date]@row <= TODAY(+31), [Due Date]@row <= TODAY(+90), 2, 3)))

Answers

  • Frank S.
    Frank S. ✭✭✭✭✭✭
    Options

    Greetings @SASardy,

    Please give this formula a try:

    =IF(Date@row <= TODAY(30), 1, IF(AND(Date@row >= TODAY(31), Date@row <= TODAY(90)), 2, 3))

    Let me know if you need additional help.

    Frank Smith, PMP

    Assistant Director | IT Special Projects Mgr.

    Oregon Parks & Recreation Department

    If my response helps, please mark it as an accepted answer. 😎

  • SASardy
    SASardy ✭✭✭✭
    edited 04/06/23
    Options

    @Frank S. I tried your formula and Smartsheet said the formula syntax isn't quite right.


    Never mind, I figured it out. Thank you so much!

  • Frank S.
    Frank S. ✭✭✭✭✭✭
    Options

    @SASardy,

    My apologies; I should have clarified that you would need to change the Date@row to whatever column name you wanted to check the date.

    I'm glad it worked out for you, and I hope I got you on the right path.

    Frank Smith, PMP

    Assistant Director | IT Special Projects Mgr.

    Oregon Parks & Recreation Department

    If my response helps, please mark it as an accepted answer. 😎

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!