rockyhawkky

New Member
Joined
Jul 18, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I am making a task tracking grant chart using 2 input value Start(Date and time) and Duration(Hourly), to calculate their Finish by simply just Start+Duration/24
as you can see in this sheet.
Book1
ABCD
1TaskDurationStartFinish
2Task11201-Oct 06:0001-Oct 18:00
3Task21301-Oct 06:0002-Oct 07:00
Sheet1
Cell Formulas
RangeFormula
D2D2=C2+(B2/24)

my problem is the working time is 06:00-18:00 (im using 24 hr format) any time before or after this time is non-working time and i want my finish date to calculated by skipping these period.
ex. if my start date is 1-Oct 6:00 duration is 13 finish will go to next day 2-Oct 7:00 as you can see in task 2
any idea of formular to cal my Finish date?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I am making a task tracking grant chart using 2 input value Start(Date and time) and Duration(Hourly), to calculate their Finish by simply just Start+Duration/24
as you can see in this sheet.
Book1
ABCD
1TaskDurationStartFinish
2Task11201-Oct 06:0001-Oct 18:00
3Task21301-Oct 06:0002-Oct 07:00
Sheet1
Cell Formulas
RangeFormula
D2D2=C2+(B2/24)

my problem is the working time is 06:00-18:00 (im using 24 hr format) any time before or after this time is non-working time and i want my finish date to calculated by skipping these period.
ex. if my start date is 1-Oct 6:00 duration is 13 finish will go to next day 2-Oct 7:00 as you can see in task 2
any idea of formular to cal my Finish date?
Try this. Use some aditional cells, to define the start and the end time of the working period.
Book1
ABCDEF
1StartHours / DurationFinishBeginEnd
201-Oct 06:001202-Oct 06:0006:00:0018:00:00
301-Oct 06:001302-Oct 07:00
402-Oct 06:002704-Oct 09:00
Sheet1
Cell Formulas
RangeFormula
C2:C4C2=WORKDAY(A2,INT(B2/12)+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,12),MOD(MOD(B2,12),1)*60,0)>$F$2,1,0))+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,12),MOD(MOD(B2,8),1)*60,0)>$F$2,$E$2+TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,12),MOD(MOD(B2,12),1)*60,0)-$F$2,TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,12),MOD(MOD(B2,12),1)*60,0))
 
Upvote 1
Upvote 1

Forum statistics

Threads
1,215,130
Messages
6,123,220
Members
449,091
Latest member
jeremy_bp001

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top