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.

Networkdays formula syntax error

✭✭✭✭✭
edited 08/21/24 in Formulas and Functions

I used the AI formula builder to create a formula to calculate the number weeks (weeks out) between a launch date and milestone dates. I want the weeks out to always be positive. When I try to convert the provided formula, which works in the cell I place it in, I get a syntax error. I can't figure out the error.

Tags:

Best Answer

  • Community Champion
    Answer ✓

    Your formula is referencing a specific row using [Date]72 - this means the value in the Date column on row 72.

    You cannot reference a specific cell in a column formula. If you make this a cell formula, it should work.

Answers

  • Community Champion
    Answer ✓

    Your formula is referencing a specific row using [Date]72 - this means the value in the Date column on row 72.

    You cannot reference a specific cell in a column formula. If you make this a cell formula, it should work.

  • ✭✭✭✭✭
    edited 08/22/24

    Ok so I added another column Launch Date and copied the same date on each row. It now is allowing the formula to be converted to a column formula now that I am referencing the date@row. Thanks for the help.

    =IFERROR(ABS(NETWORKDAYS([Launch Date]@row, [Milestone Date]@row) / 7), "")

  • Community Champion

    Great news @PDunn

    I know it is working now and you might not want to mess with it, but if the launch date is the same for every single row and you don't want to have that extra column, you could make launch date a field on the sheet summary and then reference that in your column formula. See Site faviconSheet Summary | Smartsheet Learning Center

    if you are interested.

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