Calculating time in an Excel formula

Closed
treehouse
Posts
1
Registration date
Monday January 3, 2011
Status
Member
Last seen
January 3, 2011
- Jan 3, 2011 at 06:15 AM
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
- Feb 9, 2011 at 05:07 PM
Hello,

I have an Excel formula that works:

=WORKDAY(A2-13.5/24,1)+IF(NETWORKDAYS(A2,A2), IF(MOD(A2,1)*24<=13.5,MAX(MOD(A2,1)*24+4,12.5), MIN(MOD(A2,1)*24-5,12.5)),12.5)/24

If a job comes in over the 'weekend' the clock does not start ticking until 08:00am Monday morning.

If a weekend date is in A2, the formula calculates the next working day (Monday) in B2, between 08:00 & 17:00

Please help me adapt the formula to work between 07:00am & 19:00

Many, many thanks

Treehouse

1 reply

rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
769
Feb 9, 2011 at 05:07 PM
Could you please upload a sample EXCEL file WITH sample data, macro, formula , conditional formatting etc on some shared site like https://authentification.site , http://docs.google.com, http://wikisend.com/ , http://www.editgrid.com etc
AND post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too.


Note:
your data need not be to be real data but a good representative of how data looks like
0