Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 106
Default business hours formula help

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default business hours formula help

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default business hours formula help

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default business hours formula help

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Networkdays and Business Hours James A. Excel Worksheet Functions 3 September 26th 06 08:02 PM
Add 12 business hours to Time [email protected] Excel Worksheet Functions 0 May 10th 06 01:20 AM
How do I add 12 business hours to the current date/time? [email protected] Excel Worksheet Functions 1 May 10th 06 01:18 AM
Calculating Business Hours Between 2 Dates tanya216 Excel Discussion (Misc queries) 3 April 11th 06 03:22 PM
Time and Business Hours Brett Excel Worksheet Functions 1 November 23rd 05 08:20 PM


All times are GMT +1. The time now is 05:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"