ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Number of Hours&Minutes between Dates and time (https://www.excelbanter.com/excel-discussion-misc-queries/176129-number-hours-minutes-between-dates-time.html)

Jeremy

Number of Hours&Minutes between Dates and time
 
A1= 2/11/2008 13:00:00 (Monday) - Date order entered
B1= 2/12/2008 13:00:00 (Tuesday) - Fixed date to determine age of order

C1 = 24:00:00 Age of order
(This is the formula I need) I need to be able to take out weekends and
holidays.
So for the weekends

A1=2/1/08 15:00:00 (Friday) - Date order entered
B1=2/4/08 15:00:00 (Monday) Fixed date to determine age of order

C1= 24:00:00 - Age of order (Saturday and Sunday Not Counted)





Mike H

Number of Hours&Minutes between Dates and time
 
You conveniently have the same time for each of the dates in your examples
which I suspect will not always be the case so the answer is a bit more
complicated.

Have a look here
http://www.cpearson.com/excel/DateTimeWS.htm

Mike

"Jeremy" wrote:

A1= 2/11/2008 13:00:00 (Monday) - Date order entered
B1= 2/12/2008 13:00:00 (Tuesday) - Fixed date to determine age of order

C1 = 24:00:00 Age of order
(This is the formula I need) I need to be able to take out weekends and
holidays.
So for the weekends

A1=2/1/08 15:00:00 (Friday) - Date order entered
B1=2/4/08 15:00:00 (Monday) Fixed date to determine age of order

C1= 24:00:00 - Age of order (Saturday and Sunday Not Counted)





Jeremy

Number of Hours&Minutes between Dates and time
 
Awesome. One other questin on the same point. If I have the Day Start at
0:00 and the day end at 24:00:00 will that account for a 24 hour work day?

"Mike H" wrote:

You conveniently have the same time for each of the dates in your examples
which I suspect will not always be the case so the answer is a bit more
complicated.

Have a look here
http://www.cpearson.com/excel/DateTimeWS.htm

Mike

"Jeremy" wrote:

A1= 2/11/2008 13:00:00 (Monday) - Date order entered
B1= 2/12/2008 13:00:00 (Tuesday) - Fixed date to determine age of order

C1 = 24:00:00 Age of order
(This is the formula I need) I need to be able to take out weekends and
holidays.
So for the weekends

A1=2/1/08 15:00:00 (Friday) - Date order entered
B1=2/4/08 15:00:00 (Monday) Fixed date to determine age of order

C1= 24:00:00 - Age of order (Saturday and Sunday Not Counted)






All times are GMT +1. The time now is 07:12 PM.

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