#Invalid Data Type

Kate123
Kate123 ✭✭✭✭

Hi There

I am using the below formula to check a box if a date is one day greater than today. The formula works fine except if the date field is blank, then it is showing up #Invalid Data Type.

How can the results show up as blank instead of #Invalid Data Type if there is no date referenced yet?

=IF(NETDAYS([Date to archive record]@row, TODAY()) > 1, 1, 0)

Any help is appreciated. Thanks!

Best Answer

  • Anjanesh Vaidya
    Anjanesh Vaidya ✭✭✭✭✭
    Answer βœ“

    Hi Kate123,

    You can use IFERROR as below to achieve what you mentioned.

    =IFERROR(IF(NETDAYS([Date to archive record]@row, TODAY()) > 1, 1, 0)," ")

    I hope it will work.

    Thank you

    Anjanesh Vaidya

    Thanks,

    Anjanesh Vaidya

    Smartsheet Development, Ignatiuz Software

    Did this answer help you? Show some love by marking this answer as "InsightfulπŸ’‘" or "Awesome❀️" and "Vote Up⬆️

Answers

  • Anjanesh Vaidya
    Anjanesh Vaidya ✭✭✭✭✭
    Answer βœ“

    Hi Kate123,

    You can use IFERROR as below to achieve what you mentioned.

    =IFERROR(IF(NETDAYS([Date to archive record]@row, TODAY()) > 1, 1, 0)," ")

    I hope it will work.

    Thank you

    Anjanesh Vaidya

    Thanks,

    Anjanesh Vaidya

    Smartsheet Development, Ignatiuz Software

    Did this answer help you? Show some love by marking this answer as "InsightfulπŸ’‘" or "Awesome❀️" and "Vote Up⬆️

  • Kate123
    Kate123 ✭✭✭✭

    This works perfectly - thank you!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!