Formula Assistance

Hi all,

I have the following formula set as a column formula which is used to set a status. It is working for most rows, but some it is returning #INVALID OPERATION

I am not able to work out why it works for some and not others?

Would really appreciate some assistance!

=IF(AND(NOT(ISBLANK([Outcome]@row)), [Mediation Date]@row <= TODAY()), "Mediation complete - outcome populated", IF(AND([Mediation Date]@row <= TODAY(), ISBLANK([Outcome]@row), NOT(ISBLANK([Mediation Date]@row))), "Mediation complete - pending outcome", IF([Mediation Date]@row > TODAY(), "Mediation booked", IF(NOT(ISBLANK([Booking forms sent]@row)), "Pending Booking", IF(AND(ISBLANK([Booking forms sent]@row), NOT(ISBLANK([CA assigned]@row))), "Pre-booking", IF(ISBLANK([CA assigned]@row), "New"))))))

Thanks

Best Answer

  • Steven Evans
    Steven Evans ✭✭✭
    edited 03/09/22 Answer ✓

    Hey There,

    I would suggest 2 things to implement:

    1) Include an else condition on the last IF statement (as a best practice)

    i.e this statement --> "IF(ISBLANK([CA assigned]@row),"New")"

    2) Change the checks on "[Booking forms sent]@row" to " = 1" / "= 0" instead of "NOT(ISBLANK" / "ISBLANK" respectively. (I'm assuming this field is a check box)

    Regards,

Answers

  • Steven Evans
    Steven Evans ✭✭✭
    edited 03/09/22 Answer ✓

    Hey There,

    I would suggest 2 things to implement:

    1) Include an else condition on the last IF statement (as a best practice)

    i.e this statement --> "IF(ISBLANK([CA assigned]@row),"New")"

    2) Change the checks on "[Booking forms sent]@row" to " = 1" / "= 0" instead of "NOT(ISBLANK" / "ISBLANK" respectively. (I'm assuming this field is a check box)

    Regards,

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!