Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to find the diff in hours only between 8:00 and 17:00 Monday to
Friday only, any hours that fall outside of that time frame should not be counted. Each calculation will have different dates so if there is a way to do this without specifying the date that would be great! 2/19/2010 16:00 2/22/2010 9:00 ??? Thanks for any assistance you can offer! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi there GMv1,
Assuming "2/19/2010 16:00" is in cell A1 and "2/22/2010 9:00" is in cell B1. The formulae in cell C1 would be as follows : =INT((B1-A1)*24) Let us know if this helps you. -- Thank you and Regards Garreth Lombard "GMv1" wrote: I am trying to find the diff in hours only between 8:00 and 17:00 Monday to Friday only, any hours that fall outside of that time frame should not be counted. Each calculation will have different dates so if there is a way to do this without specifying the date that would be great! 2/19/2010 16:00 2/22/2010 9:00 ??? Thanks for any assistance you can offer! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Garreth Thanks but I need a formula that will only calculate the hours
between Monday and Friday between 8:00 and 17:00. The formula you provided calculates for any hours. "Garreth Lombard" wrote: Hi there GMv1, Assuming "2/19/2010 16:00" is in cell A1 and "2/22/2010 9:00" is in cell B1. The formulae in cell C1 would be as follows : =INT((B1-A1)*24) Let us know if this helps you. -- Thank you and Regards Garreth Lombard "GMv1" wrote: I am trying to find the diff in hours only between 8:00 and 17:00 Monday to Friday only, any hours that fall outside of that time frame should not be counted. Each calculation will have different dates so if there is a way to do this without specifying the date that would be great! 2/19/2010 16:00 2/22/2010 9:00 ??? Thanks for any assistance you can offer! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
With start time in A1 and end time in B1 =MIN(MOD(B1,1),TIME(17,0,0))-MAX(MOD(A1,1),TIME(8,0,0)) Regards Roger Govier GMv1 wrote: Garreth Thanks but I need a formula that will only calculate the hours between Monday and Friday between 8:00 and 17:00. The formula you provided calculates for any hours. "Garreth Lombard" wrote: Hi there GMv1, Assuming "2/19/2010 16:00" is in cell A1 and "2/22/2010 9:00" is in cell B1. The formulae in cell C1 would be as follows : =INT((B1-A1)*24) Let us know if this helps you. -- Thank you and Regards Garreth Lombard "GMv1" wrote: I am trying to find the diff in hours only between 8:00 and 17:00 Monday to Friday only, any hours that fall outside of that time frame should not be counted. Each calculation will have different dates so if there is a way to do this without specifying the date that would be great! 2/19/2010 16:00 2/22/2010 9:00 ??? Thanks for any assistance you can offer! |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
See if this works for you:
A1: 2/19/2010 16:00 B1: 2/22/2010 9:00 C1: 08:00 D1: 17:00 E1: =(NETWORKDAYS(A1,B1)-1)*(D1-C1)+IF(NETWORKDAYS(B1,B1),MEDIAN(MOD(B1,1),D1,C1), D1)-MEDIAN(NETWORKDAYS(A1,A1)*MOD(A1,1),D1,C1) Format cell E1 to hh:mm "GMv1" wrote: Garreth Thanks but I need a formula that will only calculate the hours between Monday and Friday between 8:00 and 17:00. The formula you provided calculates for any hours. "Garreth Lombard" wrote: Hi there GMv1, Assuming "2/19/2010 16:00" is in cell A1 and "2/22/2010 9:00" is in cell B1. The formulae in cell C1 would be as follows : =INT((B1-A1)*24) Let us know if this helps you. -- Thank you and Regards Garreth Lombard "GMv1" wrote: I am trying to find the diff in hours only between 8:00 and 17:00 Monday to Friday only, any hours that fall outside of that time frame should not be counted. Each calculation will have different dates so if there is a way to do this without specifying the date that would be great! 2/19/2010 16:00 2/22/2010 9:00 ??? Thanks for any assistance you can offer! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating diff between date/ time only between certain hours | Excel Discussion (Misc queries) | |||
[NEWBIE] date/time diff | Excel Discussion (Misc queries) | |||
difference of date/time only calculating workingdays/hours | Excel Worksheet Functions | |||
calculating time for late hours | Excel Worksheet Functions | |||
calculating timesheet, time-in/time-out = total hours & minutes, . | Excel Worksheet Functions |