Date formula help

Hi,

I have a start date column and a complete date column. I am trying to track number of days since the start date (to today) that stops counting when the complete date column is filled in. If I use NETDAYS, it does not give me a count until the second date is filled in.

Thanks!

Best Answer

  • John_Foster
    John_Foster ✭✭✭✭✭✭
    edited 11/29/23 Answer ✓

    Hi @JArrington,

    You could use an If statement that could look something like the below.

    =IF([Completed Date]@row = "", NETDAYS([Start Date]@row, TODAY()), NETDAYS([Start Date]@row, [Completed Date]@row))

    This IF statement uses the TODAY() option where the field is not completed, therefore every day this will show as a day older.

    I have added a screenshot of a demo sheet I created to look at this.


    Hope this helps!

    John

Answers

  • John_Foster
    John_Foster ✭✭✭✭✭✭
    edited 11/29/23 Answer ✓

    Hi @JArrington,

    You could use an If statement that could look something like the below.

    =IF([Completed Date]@row = "", NETDAYS([Start Date]@row, TODAY()), NETDAYS([Start Date]@row, [Completed Date]@row))

    This IF statement uses the TODAY() option where the field is not completed, therefore every day this will show as a day older.

    I have added a screenshot of a demo sheet I created to look at this.


    Hope this helps!

    John

  • Very helpful!

    Thank you!

    Jen

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!