B
BNT1 via OfficeKB.com
Hi
I got this formula from one of my old treads, that Bob Phillips sorted for me
in 2006 (search - add 4 days).
=WORKDAY(A1,IF(OR(WEEKDAY(A1,2)>5,B1>TIME(16,0,0)),5,4))
I cannot seem to get the formula working when the hours are adjusted. If
using the first example, returns 21/01/10, but when adjust the time to say 21:
00:00 hrs the date does not change
Examples
Mon 18/01/10 07:00:00 result should read 21/01/10
Mon 18/01/10 16:51:00 result should read 22/01/10
Sat 23/01/10 any time result should read 28/01/10
Sun 24/01/10 any time result should read 28/01/10
Mon 6/3 00:51:00 result should be 10/3
In short, anything after 1600hrs the calculation would start from the
following day, weekends are not counted at all, and the calulation will be
from the Monday. (counting before 1600hrs as day one)
Can anyone advise where i'm going wrong?
Thanks in advance
Brian Thompson
I got this formula from one of my old treads, that Bob Phillips sorted for me
in 2006 (search - add 4 days).
=WORKDAY(A1,IF(OR(WEEKDAY(A1,2)>5,B1>TIME(16,0,0)),5,4))
I cannot seem to get the formula working when the hours are adjusted. If
using the first example, returns 21/01/10, but when adjust the time to say 21:
00:00 hrs the date does not change
Examples
Mon 18/01/10 07:00:00 result should read 21/01/10
Mon 18/01/10 16:51:00 result should read 22/01/10
Sat 23/01/10 any time result should read 28/01/10
Sun 24/01/10 any time result should read 28/01/10
Mon 6/3 00:51:00 result should be 10/3
In short, anything after 1600hrs the calculation would start from the
following day, weekends are not counted at all, and the calulation will be
from the Monday. (counting before 1600hrs as day one)
Can anyone advise where i'm going wrong?
Thanks in advance
Brian Thompson