Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have used this formula:
=(NETWORKDAYS(D14,E14-1)*8+(MOD(E14,1)-MOD(D14,1))) to calc the time between start and stop considering an 8 hr business day. the problem is that i am getting a negative if the start and stop is in the same day. I have also tried to add a *24 at the end still no good. What am i doing wrong? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The problem is in your NETWORKDAYS()
Try this =if(d14=e14,0,networkdays(d14,e14-1)*8+.... Does this get you what you want? You may want to add logic to make sure e14 is never less than d14..... "Belinda7237" wrote: I have used this formula: =(NETWORKDAYS(D14,E14-1)*8+(MOD(E14,1)-MOD(D14,1))) to calc the time between start and stop considering an 8 hr business day. the problem is that i am getting a negative if the start and stop is in the same day. I have also tried to add a *24 at the end still no good. What am i doing wrong? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try like this:
=(NETWORKDAYS(D14,E14)-1)*("8:00")+(MOD(E14,1)-MOD(D14,1)) "Belinda7237" wrote: I have used this formula: =(NETWORKDAYS(D14,E14-1)*8+(MOD(E14,1)-MOD(D14,1))) to calc the time between start and stop considering an 8 hr business day. the problem is that i am getting a negative if the start and stop is in the same day. I have also tried to add a *24 at the end still no good. What am i doing wrong? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
Maybe my UDF count_hours can help you he http://www.sulprobil.com/html/count_hours.html Regards, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating Networkdays and Business Hours | Excel Worksheet Functions | |||
Add 12 business hours to Time | Excel Worksheet Functions | |||
How do I add 12 business hours to the current date/time? | Excel Worksheet Functions | |||
Calculating Business Hours Between 2 Dates | Excel Discussion (Misc queries) | |||
Time and Business Hours | Excel Worksheet Functions |