# Changing date within formula

Options
edited 12/09/19

I am looking to find a way to incorporate a changing value to the hours needed per day in order to meet deadlines. In addition i've input task completion % in order to account for the completion rate. My current formula is the following :

=IF(ISNUMBER([Man Hours Allowed]3), ([Man Hours Allowed]3 / Duration3) * (1 - [% Complete]3), 0)

I'm assuming something along the lines of "End Date - Today" would help, but am unsure how to incorporate in place of the "Duration" value

I've provided a screenshot of a partial template in order to better represent the question

• ✭✭✭✭✭✭
Options

Are you able to provide more details about your process and some screenshots (replace/blackout sensitive data)?

• Options

Does that help? I'm trying to create a running total once a task start date has occurred, which takes into account completion % in order to apply the right number of average hours per day to a parent task

• ✭✭✭✭✭✭
Options

So you are wanting to just add up all of the Man Hours Allowed? I'm sorry. I'm having trouble understanding exactly what it is you're looking to accomplish. Are you trying to automate a change, or...?

• Options

Figured it out. Final result came out to:

=IF(AND(ISNUMBER([Man Hours Allowed]3), ([Start Date]3 < TODAY())), ([Man Hours Allowed]3 / (NETWORKDAYS(TODAY(), [End Date]3)) * (1 - [% Complete]3)), (IF(AND(ISNUMBER([Man Hours Allowed]3), ([Start Date]3 > TODAY())), ([Man Hours Allowed]3 / (NETWORKDAYS([Start Date]3, [End Date]3)) * (1 - [% Complete]3)), 0)))

The idea was to import that data into a chart to give me a look into the number of work hours needed daily compared to my capacity. Sorry for being unclear

• ✭✭✭✭✭✭
Options

No worries. Glad you were able to get it figured out.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!