MULTIPLE IF STATEMENTS - RETURNING #INVALID OPERATION

Hi

I am trying to do a multiple IF statement but it keeps returning #INVALID OPERATION. I have had a search through the community and it seems that my formula is correct (it works perfectly well in Excel 😅)

=IF([Date Returned]128 > [Date Furloughed]128, [Date Returned]128, IF([Date Returned]128 < [Date Furloughed]128, "", IF([Date Returned]128 = "", "")))

Am I missing something blatantly obvious. HELP!



Many thanks,


JW


Answers

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭

    Hi @Jacqué Whitlock

    Hope you are fine, please try the following:


    =IF([Date Returned]@row > [Date Furloughed]@row, [Date Returned]@row,"")

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭

    Hi @Jacqué Whitlock

    Try this. I swapped the order of your IFs and converted your row numbers to @row. Using @row whenever you don't have to refer to a specific cell is a best practice in smartsheet.

    =IF([Date Returned]@row = "", "", IF([Date Returned]@row > [Date Furloughed]@row, [Date Returned]@row, IF([Date Returned]@row < [Date Furloughed]@row, "")))

    cheers

  • Hi Bassam Khalil 

    Thank you for your reply.

    Unfortunately the suggested formula also returns #INVALID OPERATION.

    I have also tried

    =IF([Date Returned]128 = "", "", IF([Date Returned]128 > [Date Furloughed]128, [Date Returned]128, "")) which works perfectly fine if there is a date in the Date Returned cell but returns #INVALID OPERATION if the Date Returned cell is blank.


    JW

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭

    Hi @Jacqué Whitlock

    Is your column restricted to Dates only? Double click on the column header to check this

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭

    Hi @Jacqué Whitlock

    Did you get your formula to work? If not, try this

    =IFERROR(IF(ISDATE([Date Returned]@row), IF([Date Returned]@row > [Date Furloughed]@row, [Date Returned]@row, IF([Date Returned]@row < [Date Furloughed]@row, ""))), "")

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!