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.

IFERROR and NETWORKDAY formula

Hi,

I have a source sheet with two date columns: Date of Request and Date of Completion. I am using a summary sheet to create a dashboard and have used this column formula to cross reference the source sheet to find the number of working days between the two dates:

=IFERROR(NETWORKDAYS([SourcesheetRange1], [SourcesheetRange2]), "").

However, the formula only returns a blank field even for rows in the source sheet where both columns have dates.

The referenced columns are restricted to date values only. Some cells in the source columns are blank, hence the use of iferror.

Any help would be appreciated

Tags:

Answers

  • Community Champion

    NETWORKDAYS is a row-specific formula, and not a range formula. In other words, it appears the formula you are using essentially is asking to look at two entire columns, and give ONE answer on how many days are between them - since there's not one unique answer, it evaluates to an error - hence the blank. You need to somehow constrain to a single row to get what you're trying to do. If it was on one sheet, I'd say something like =IFERROR(NETWORKDAYS(RequestDate@row, CompletionDate@row),"") would give you what it appears you're after - but since you're rolling this over to a summary, I'm not sure what you're trying to achieve. Are you able to provide screenshots including your column headers for a bit of additional context?

    If this answer resolves your question, please help the Community by marking it as an accepted answer. I'd also be grateful for your response - "Insightful"or "Awesome" reactions are much appreciated. Thanks!

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