Jmoz092
Board Regular
- Joined
- Sep 8, 2017
- Messages
- 184
- Office Version
- 365
- 2011
- Platform
- Windows
- MacOS
We have a task (Task2) that begins at a time that we track. We can begin that task before or after a different task (Task1) completes, which we also track. I need to determine the difference in these two times (logged in military time) and then convert that time to hh:mm format in order to determine an available potential for productivity increase; the sooner that task 2 begins, we can do more work that is dependent on both tasks beginning.
i.e.:
if Task 1 completes at 0700, and Task2 begins at 0730, we've lost 0030 (00:30).
if Task 1 completes at 0700 and Task2 begins at 0630, we've gained 0030 (00:30).
I'm using a formula to calculate differences in military time to hh:mm, but I can not figure out how to expand this formula to meet the aforementioned need. Start time is in C4, End time is in D4.
I'm trying to change it to suit my needs, but this isn't working. Task1 time is tracked in N1, Task2 start time is tracked in C3.
I'll need the positive difference or negative difference to be displayed in the cell, preferably by worksheet formula. I can do this by conditional formatting, but can not reference the positive or negative value in a summary sheet elsewhere in the workbook if I do that.
i.e.:
if Task 1 completes at 0700, and Task2 begins at 0730, we've lost 0030 (00:30).
if Task 1 completes at 0700 and Task2 begins at 0630, we've gained 0030 (00:30).
I'm using a formula to calculate differences in military time to hh:mm, but I can not figure out how to expand this formula to meet the aforementioned need. Start time is in C4, End time is in D4.
Code:
[COLOR=#000000][FONT="]=IF(AND[COLOR=#006107]([/COLOR][COLOR=#0057d6]C4[/COLOR]>0,[COLOR=#006107]D4[/COLOR]>[COLOR=#0057d6]C4[/COLOR][COLOR=#006107])[/COLOR],TEXT[COLOR=#006107](D4[/COLOR],"00\:00"[COLOR=#006107])[/COLOR]-TEXT[COLOR=#006107]([/COLOR][COLOR=#0057d6]C4[/COLOR],"00\:00"[COLOR=#006107])[/COLOR]+[COLOR=#006107]([/COLOR][COLOR=#0057d6]C4[/COLOR]>[COLOR=#006107]D4)[/COLOR],"")[/FONT][/COLOR]
I'm trying to change it to suit my needs, but this isn't working. Task1 time is tracked in N1, Task2 start time is tracked in C3.
Code:
[COLOR=#000000][FONT="]=IF([COLOR=#0057d6]N1[/COLOR]>[COLOR=#006107]C3[/COLOR],TEXT[COLOR=#006107]([/COLOR][COLOR=#0057d6]N1[/COLOR],"00\:00"[COLOR=#006107])[/COLOR]-TEXT[COLOR=#006107](C3[/COLOR],"00\:00"[COLOR=#006107])[/COLOR]+[COLOR=#006107](C3[/COLOR]>[COLOR=#0057d6]N1[/COLOR][COLOR=#006107])[/COLOR], TEXT[COLOR=#006107]([/COLOR][COLOR=#0057d6]N1[/COLOR],"00\:00"[COLOR=#006107])[/COLOR]-TEXT[COLOR=#006107]([/COLOR][COLOR=#0057d6]N1[/COLOR],"00\:00"[COLOR=#006107])[/COLOR]+[COLOR=#006107](C3[/COLOR]>[COLOR=#0057d6]N1[/COLOR][COLOR=#006107])[/COLOR])[/FONT][/COLOR]
I'll need the positive difference or negative difference to be displayed in the cell, preferably by worksheet formula. I can do this by conditional formatting, but can not reference the positive or negative value in a summary sheet elsewhere in the workbook if I do that.