View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
David David is offline
external usenet poster
 
Posts: 1,560
Default Adding times but excluding a time range

Hi,
The set up on this is important, but try this:

RunTime StartDate/Time DownTime FinishDate/Time
1.16666 4/18/05 6:00 AM 1/0/00 4:00 AM 4/19/05 2:00 PM
=28/24 =4/24 =+B2+A2+C2
Format is date and Time Format is date and Time
ColA ColB ColC ColD
28 hrs/24 4hrs/24

Thanks,


"Paulymon" wrote:

Is there a function similar to Networkday for time? That would exclude a
time range from calculations?

I need to compute the start and end time of an order. I know how long the
job will take and the initial start time but the availability of the press is
not 24/7 so I have a couple of problems.

Let's say the job goes to press at 6am Monday and is scheduled for 28 hours
of production. If the press ran 24/7 then the end time/date would be Tuesday
at 10am. Unfortunately the press is down from 4pm to 8pm on Monday and so
will not be done until Tuesday at 2pm. I'm generating data for multiple
orders over several days and the press availability time may shift from day
to day. So the end time of a job cannot land during one of the down periods
or take account the downtime periods when figuring the end time of an order.

Any help would be appreciated--even if it's just pointing me in the right
direction.