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

• ✭✭✭✭✭✭

Hi @Jacqué Whitlock

Hope you are fine, please try the following:

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

bassam.khalil2009@gmail.com

• ✭✭✭✭✭✭

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

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

• ✭✭✭✭✭✭

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

• ✭✭✭✭✭✭

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!