How to format and calculate task days in process?

laurieny

New Member
Joined
Jan 1, 2011
Messages
7
For weekly staff meetings I need to provide updates via a spreadsheet of tasks to be done by various people. The table includes the Date Assigned (F2 for instance and possibly blank when not yet determined whom to assign the task), the Date Completed (G2 and often is blank) and then calculate in H2 the number of WORKDAY(s) (ie no weekends or holidays) that the task has been in process from TODAY(). When the task has yet to be assigned, then H2 (Time in Process)should be blank. If the task is assigned and TODAY() is at least one day past the date assigned, then H2 should be the number of days passed. When the number of days in H2 hits or exceeds 10 days, then the cell should be highlighted red. When the task is assigned but the date is greater than today (we know that something can't be started until next week for instance, but it gets assigned to that date in our staff meeting), then H2 should be blank. When the task if completed (ie G2 now has a date) then H2 should just be the number of days it took (but not red even if it took more than 10 days to complete).

I prefer not to embarass myself with the various formulas I have tried in order to accomplish this. If there is a way to do this without outside scripting, I would be most appreciative.

Thanks in advance for any assistance.
-Laurie
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hello. Take a look at NETWORKDAYS in the Analysis ToolPak (tools > Add-Ins)
 
Upvote 0
Yes, that helps me get the number of days, but it is the conditionals that I can't get right. So for instance if I do:

=IF(G2,"",ABS(NETWORKDAYS(TODAY(),F2)))

Then that works fine for when a date is assigned, and then I try a more elaborate IF to handle when a task is completed(ie G2 is not blank) then NETWORKDAYS(F2, G2) and that isn't working. And that still doesn't handle the case where no date exists in either F2 or G2 (ie the task has not yet been assigned) and therefore I want H2 to be blank. And of course then I just apply conditional formatting to the H2 column when the number is greater than 10.

Does that explain it better?
 
Upvote 0
Maybe this is a start - you might need to build in more conditions

Excel Workbook
FGH
1AssignedCompletedOver
201/03/201105/03/2011 
3
401/03/201119
520/03/20115
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H21. / Formula is =AND(H2<>"",H2>=10)Abc
 
Upvote 0
Yep, but I need one more level G2 is not blank (ie the task is done) that then calculates the number of days that took-so H2 is populated.

And I really appreciate your help - thanks!
 
Upvote 0
Maybe like this (CF not shown)

Excel Workbook
FGH
1AssignedCompletedOver
201/03/201105/03/20114
3
401/03/201119
520/03/20115
601/03/201114/03/201113
Sheet7
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top