Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Days to go formula

I have a dedicated column "days to go" I'm trying to get the formula to take the networkdays between today and the start date (accounting for dates in the "holiday helper" column.

This formula works but gives a negative number. If the date is 5 days in the future I'd like it to read 5 not -5. If in the past be negative, not a positive number. But i can't seem to tweak this formula to achieve that. Appreciate help, thanks!

=IFERROR(IF([Start Date]@row = "", NETWORKDAYS([Start Date]@row, TODAY()), NETWORKDAYS([Start Date]@row, TODAY(), [Holiday Helper]:[Holiday Helper])), "")

Best Answer

  • Community Champion
    Answer ✓

    You could swap the start date and end date, so rather than days from Start Date to today, do today to Start date

    =IFERROR(IF([Start Date]@row = "", NETWORKDAYS(TODAY(),[Start Date]@row), NETWORKDAYS(TODAY(), [Start Date]@row, [Holiday Helper]:[Holiday Helper])), "")

    Does that help?

Answers

  • Community Champion
    Answer ✓

    You could swap the start date and end date, so rather than days from Start Date to today, do today to Start date

    =IFERROR(IF([Start Date]@row = "", NETWORKDAYS(TODAY(),[Start Date]@row), NETWORKDAYS(TODAY(), [Start Date]@row, [Holiday Helper]:[Holiday Helper])), "")

    Does that help?

  • ✭✭✭

    I thought it should be that easy - I kept getting an #UNPARSEABLE when swapped the TODAY() and the [Start Date]@row. I realize now with your help, there should not be a ) after the last [Start Date]@row So, I had one " ) " too many. Thanks!

  • Community Champion

    Happy to help @Angela.R - glad you got there.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    9
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2