LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 287
Default Date formula to calculate cycle time help please!

If B2 and C2 contain both time and date, and assuming that your work day is
09:00 - 17:00 Monday to Friday, and that the adjusted times will fall within
these business hours try

=IF(E2="Closed",(NETWORKDAYS(B2+"2:00",C2+"2:00")-1)*("17:00"-"09:00")+MOD(C2+"2:00",1)-MOD(B2+"2:00",1),"")

format as [h]:mm to show the hours in time format, e.g. 26:30. If you want
decimal format, e.g. 26.5, you can multiply by 24

If your start and end times [adjusted] might fall outside the business hours
you can still get the result......post back for more complex formula!



"Dave Peterson" wrote:

Do any of your coworkers have the workbook that has this function?

Maybe you can get it from them????

goodwm wrote:

no, it was stolen, which is why I have the new version of the program.

"Peo Sjoblom" wrote:

Do you still have access to the computer where it used to work

--


Regards,


Peo Sjoblom

"goodwm" wrote in message
...
I don't have an IT person who can load it at this time. I am one of the
first people who have the updated excel on my computer, and the person who
wrote the origional formula is no longer w/ the company. Thank you
though.

"Peo Sjoblom" wrote:

You need to install the user defined function you have which seems to be
called "workhours"
There is no such function built in. So have someone from IT copying over
it.

--


Regards,


Peo Sjoblom

"goodwm" wrote in message
...
I just recieved microsoft 2007, I was using 03 before. Someone created
a
formula to calculate a date cycle time that took in consideration the 8
hour
work day as well as the weekends. It won't work in the new version of
excel,
I get a #NAME? error. I can't figure out how to create the formula.
Here
is
the old one:
=IF(E2="Closed",workhours(B2,C2),"")
Our company's servers also just moved to a different time zone,
mountain,
so
all of the issues are date time stamped 2 hours off, we are in the
eastern
time zone. So I need to calculate that as well. Can anyone help me.
I
have
a report due by 5 today and I can't get it figured out. Thank you!







--

Dave Peterson

 
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
Cycle Time Calculations Sam B[_2_] Excel Worksheet Functions 0 April 14th 08 08:52 PM
Cycle Time if in a Specific Year PAL Excel Worksheet Functions 2 January 16th 08 06:59 PM
cycle time out of range error Access lightweight Excel Discussion (Misc queries) 1 January 15th 08 04:58 PM
Time Cycle Antonio Excel Discussion (Misc queries) 7 December 3rd 07 11:01 PM
How do I keep result from 1 iteration cycle to use in next cycle? sgl8akm Excel Discussion (Misc queries) 0 July 27th 06 08:28 PM


All times are GMT +1. The time now is 11:13 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"