Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to subtract the day and time in two cells and not
include weekends and holidays. The weekends would start at 5:00 p.m. Friday and end at 8:00 am Monday. Holidays would start at 5:00 p.m. the day before the holiday and end on 8:00 am the day after the holiday. If the holiday falls on a Friday, the time that would be exluded would be from Thursday at 5:00 p.m. to 8:00 a.m. Monday. If the holiday falls on Monday, the time that would have to be exluded would be 5:00 p.m Friday to 8:00 a.m. Tuesday. What I am trying to do is below (no weekend example here) Cell A2 = 08/06/08 2:00 pm Cell A1 = 08/05/08 1:00 pm Cell A2 - Cell A1 = 23 hours Cell A2 = 08/01/2008 4:00 P.m. Cell A1 - 08/04/2008 9:30 a.m. Cell A2 - Cell A1 = 2.5 hours (Because this is a weekend.) The end result would be the number of hours or days with fractions of hours with weekends excluded. I am trying to use only working business days. I looked at the worksheet functions and couldn't figure out to nest them together. I think this may have to be a program in VBA and my skills don't come anywhere close to this. Right now I am doing it manually and it is taking forever. I am on row 45 of 832. I am hoping to not have to look up holidays and put them in manually. Maybe Excel could do this?? Thanks for any help!!! kajero View Public Profile Send a private message to kajero Find all posts by kajero Add kajero to Your Buddy List |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date/Time Difference Excluding Weekends & Holidays | Excel Worksheet Functions | |||
Autofill weekends and holidays | Excel Worksheet Functions | |||
time interval between dates incl weekends excl holidays | Excel Discussion (Misc queries) | |||
Ignoring weekends & holidays-NETWORKDAYS? | Excel Worksheet Functions | |||
How to exclude weekends/holidays from plotted time series | Charts and Charting in Excel |