Trying to create a status column for rental assets

I’m running into an issue where I’m trying to make a column formula return a status of an asset depending on the current date, and the date it was checked out.

=IF([Assignee Due Date]@row < TODAY(), "OVERDUE", IF(ISDATE([Assignee Check-Out Date]@row), "Checked-Out", IF(ISBLANK([Asset Name]@row), " ", "Checked-In")))

Basically, I wanted to return a blank if there was nothing in the Asset Name column, a “Checked-In” status if there was an asset listed in the Asset Name column, a “Checked-

Out” status if there was a date in the “Assignee Check-Out Date” column, and an “Overdue” status if the due date column was past the current date. All the date columns are set as dates, but I keep getting an #INVALID OPERATION error in the formula column for rows with ONLY something entered in the Asset Name row.

If I enter a date into the Assignee Check-Out Date, then a "Checked Out" status appears, and if I set it far enough back that the Assignee Due Date (that column set to =IF(ISBLANK([Assignee Check-Out Date]@row), " ", WORKDAY([Assignee Check-Out Date]@row, 7)) ) is in the past an "OVERDUE" status appears.

Been trying different iterations of this as well:

=IF([Assignee Due Date]@row < TODAY(), "OVERDUE", IF(AND(NOT(ISBLANK([Asset Name]@row))),ISDATE([Assignee Check-Out Date]@row))), "Checked Out", "Checked In") 

But I couldn't figure out how to include the blank status with this syntax.


Best Answer

  • Sameer Karkhanis
    Sameer Karkhanis ✭✭✭✭✭✭
    Answer ✓

    @Dan Kadushin Based on requirement/logic you mentioned you wanted "Checked-Out" status if the Assignees Check-Out Date exists --- There is/was no other condition mentioned and so my previous formula will always get that status.

    Yes, you are getting the INVALID OPERATION as the "Assignee Due Date" column value is formula based depending on "Assignee Check-Out Date", but that is easy to solve for, see below,

    =IF(ISBLANK([Asset Name]@row), "", IF(ISDATE([Assignee Check-Out Date]@row), IF([Assignee Due Date]@row < TODAY(), "OverDue", "Checked-Out"), "Checked-In"))

    Hope this helps.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!