ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   calculating time/dates differences (https://www.excelbanter.com/excel-discussion-misc-queries/31995-calculating-time-dates-differences.html)

fvglassman

calculating time/dates differences
 
I'm looking for a formula that will allow me to calculate the difference
between the time and date of one day and the next. I also need to be able
subtract out the time between 17:00 ahd 08:30 as well as weekend days and
holidays. Example 6 June 16:51 to 7 June 9:51

Anne Troy

Here's some formulas and information that might help:
http://www.officearticles.com/excel/...soft_excel.htm
The most important part is the formatting of the cell that contains the
formula.

Also, when you subtract dates/time, the answer is provided in DAYS. So if
you want the number of hours, you have to add /24 to the end of your
formula.
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"fvglassman" wrote in message
...
I'm looking for a formula that will allow me to calculate the difference
between the time and date of one day and the next. I also need to be able
subtract out the time between 17:00 ahd 08:30 as well as weekend days and
holidays. Example 6 June 16:51 to 7 June 9:51




Bob Phillips


"Anne Troy" wrote in message
news:562ac$42b9d7e0$97c5108d$8584@allthenewsgroups .com...

Also, when you subtract dates/time, the answer is provided in DAYS. So if
you want the number of hours, you have to add /24 to the end of your
formula.


I think you mean *24 Anne :-)



Anne Troy

Uh. Thanks, Bob! :)
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Bob Phillips" wrote in message
...

"Anne Troy" wrote in message
news:562ac$42b9d7e0$97c5108d$8584@allthenewsgroups .com...

Also, when you subtract dates/time, the answer is provided in DAYS. So

if
you want the number of hours, you have to add /24 to the end of your
formula.


I think you mean *24 Anne :-)






All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com