How do I update my function syntax to stop getting the #INVALID DATA TYPE error?

I'm working within a sheet and trying to calculate the number of days between two dates.

Above is a picture of what I'm seeing and my syntax is below.

=NETWORKDAYS([Start Date]@row, [Date Completed]@row)

I've tried to add IFERROR in a couple places and it didn't help with anything unfortunately. My Task Duration is set as a Number/Text. I've also tried setting it to 'Date' to see if that made any difference, but no luck unfortunately.

Any guidance or direction could be greatly appreciated.

Thanks!

Best Answer

  • Jeff Reisman
    Jeff Reisman ✭✭✭✭✭✭
    Answer ✓

    @Tina Gigioli It looks like your Start Date is not a true date value (the year shows as YYYY, while the other dates are in default Smartsheet format of YY.) Make sure that both date columns you are referencing are set to Date-type and that the values in them are actual date values that Smartsheet recognizes.

    Regards,

    Jeff Reisman, IT Business Analyst & Project Coordinator, Mitsubishi Electric Trane US

    Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages

    If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!