Hey Everyone,

Hopefully one of you guys can help me. I have been searching the web and it looks like most people are only interested in calculating the hours or the days between two dates. I on the other hand am looking for some excel formulas to help me determine in 3 seperate cells the length of time between two date:tiems.

The catch is that it will be constantly updated since one of those dates is determined by the NOW() function.

Currently this is what I have:

Data entry requires that the user enter the Date in cell A2 and the Time in cell B2. The length of time for the project is C2 which is in the form of hours and minutes (ex 27.88)

<tbody>

</tbody>

The end result should be something like this:

<tbody>

</tbody>Any help is appreciated. I am aware that there is a slight margin for error in the formula for D2 if the Length is a whole number such as =27.00, but at the moment it is not important.

Thanks again.

Ty

Hopefully one of you guys can help me. I have been searching the web and it looks like most people are only interested in calculating the hours or the days between two dates. I on the other hand am looking for some excel formulas to help me determine in 3 seperate cells the length of time between two date:tiems.

The catch is that it will be constantly updated since one of those dates is determined by the NOW() function.

Currently this is what I have:

Data entry requires that the user enter the Date in cell A2 and the Time in cell B2. The length of time for the project is C2 which is in the form of hours and minutes (ex 27.88)

A | B | C | D | E | F | G | H | I | J | |

1 | Date | Time | Length | Minutes | Date | Time | Days | Hours | Minutes | |

2 | 08/26/2014 | 13:22 | 27.88 | 1673 | 08/27/2014 | 17:14 | 0 | 6 | ??? | |

3 | ||||||||||

4 | Current Date |

<tbody>

</tbody>

Code:

```
So as you can see After the values for A, B, and C have been entered
the rest is calcualted:
D2: [COLOR=#0000cd]IF(A2="",0,(60*LEFT(C2, 2))+(0.6*RIGHT(C2, 2)))[/COLOR]
make sure that C2 is formatted for number with two decimal places after
otherwise the formula in D2 will compute the project lenght incorrectly.
E2: [COLOR=#0000cd]INT((((A2+B2)+(D2/24/60))))[/COLOR]
This calculates the estimated finish date after seperating just the date out.
F2: MOD((((A2+B2)+(D2/24/60))),1)
This calculates the estimated finish time after sepertating just the time out
G2: [COLOR=#0000cd](E2+F2)-NOW()[/COLOR]
This combines the values of the estimated completion time and then subtracts
it from the current Date/Time to get the days left
H2:[COLOR=#0000cd] IF((((E2+F2)-$B$4)*24)>=24, 23,IF((((E2+F2)-$B$4)*24)<=0,0,(((E2+F2)-$B$4)*24)))[/COLOR]
This combines the estimated completion date/time and subtracts it from the
current date/time followed by a check of grater then or equal to 24 and then
another check to see if it is less then or equal to zero to remove negative
numbers. Once these two checks are done it evaluates to either 23 hours or
less then that. The reason for this is because I want it to indicate anything
over 23 hours as a day+hours.
I2:[COLOR=#ff0000]???[/COLOR]
This has got me stumped. I am trying to figure out how many minutes are
left for the project, but only be between 0 and 59.
```

The end result should be something like this:

G | H | I | ||

1 | DAYS | HOURS | MINUTES | |

2 | 0 | 6 | 22 |

<tbody>

</tbody>

Thanks again.

Ty

Last edited: