Link to home
Start Free TrialLog in
Avatar of angelfromabove
angelfromaboveFlag for United States of America

asked on

Exclude, nights, weekends from date/time calculation

Hello,
 
I need to calculate the time difference between 2 date/time columns.  The challenge is that I need to exclude evenings (after 5 p.m.), weekends (Saturday, Sunday) and U.S. Bank holidays. Is there a formula that I can plug into my existing formula to do this?

Please see the attached file and thanks in advance for all of your help!
Book-1.xls
Avatar of tailoreddigital
tailoreddigital
Flag of United States of America image

Avatar of [ fanpages ]
[ fanpages ]

Hi,

I need to calculate the time difference between 2 date/time columns.  The challenge is that I need to exclude evenings (after 5 p.m.), weekends (Saturday, Sunday) and U.S. Bank holidays. Is there a formula that I can plug into my existing formula to do this?

When does a morning "start" (if an evening commences at 5pm)?

BFN,

fp.
Avatar of angelfromabove

ASKER

Let's just say that morning starts at 7:30 a.m. for these purposes.
SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect, thank you!  Can I just ask one more thing?

If the time value in the 2nd column of cells is blank, in other words the task is still in progress, I am getting ###### (pound signs) as the returned value.  Is there any way to say that if that cell is blank, to return the string "still in progress"?

Thanks!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great byundt, it worked!
Hi Barry, can you explain each component of the formula?

I will award the points and accept your solution shortly. I just want to make sure that I have a good understanding and I can explain it to someone..  For example, I don't know what Median and MOD are and what their function is in the formula?

Thanks!!!!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial