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.

Count Netdays if Project Status is "Complete"

edited 01/17/22 in Formulas and Functions

Hello Forum,

I am having difficulty writing a formula to count NETDAYS if a project status is "Complete". I hope this is not too confusing, but here goes.....


  • 3 COLUMNS: "Project Status", "Actual Start Date", and "Actual End Date"

I have a grid with 200+ projects/rows (Project Intake Sheet), and would like the formula to look for "Complete" at each row of the "Project Status" column.


IF the "Project Status" is "Complete" (at the column/row vertex) ... then calculate the NETDAYS of the corresponding "Actual Start Date" and "Actual End Date" for each row..


NOTE: (I am creating this formula in a separate grid/sheet and am referencing the columns in the Project Intake Sheet.


I have tried this formula but it is unparsable:

=IF({Project Intake Sheet Range 1}"Complete",NETDAYS({Project Intake Sheet Range 2},{Project Intake Sheet Range 3}))


I don't know how to get the formula to do this for each row.

When selecting the "Project Status" column, it returns "(Project Intake Sheet Range 1)"

When selecting the "Actual Start Date" column, it returns "(Project Intake Sheet Range 2)"

When selecting the "Actual End Date" column, it returns "(Project Intake Sheet Range 3)"



Best Answer

  • Answer ✓

    Hi Paul,

    I worked on this a little more and was able to figure it out. As you recommended, I did create a column on the source sheet to calculate NETDAYS.

    If either of the following criteria is true, the NETDAYS column will not be calculated:

    1. Project Status is not "Complete";
    2. Actual Start Date is blank;
    3. Actual End Date is blank; or
    4. % Complete is not equal to 100%.

    If all criteria is false, the formula will calculate the NETDAYS in the respective column.

    =IF(OR([Project Status]@row <> "Complete", [Actual Start Date]@row = "", [Actual End Date]@row = "", [% Complete]@row < 0.1), "", NETDAYS([Actual Start Date]@row, [Actual End Date]@row))

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions