ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Date calculation help please! (https://www.excelbanter.com/excel-worksheet-functions/215865-date-calculation-help-please.html)

Cam

Date calculation help please!
 
Hello,

I am trying to find a formula to calculation the estimated completion date
for different operations which returns the date excluding holiday working 7
days a week @ 19 hours per day, but couldn't seemed to find the answer how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in date time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions

Bob Phillips[_3_]

Date calculation help please!
 
This gives you the result you posted

=WORKDAY($A$1,INT(B3))+MOD(B3,1)

but I don't get why it is 01:04 AM and not 07:04 AM.

How does 19 hours factor in, what are the 5 non-working hours?

--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Hello,

I am trying to find a formula to calculation the estimated completion date
for different operations which returns the date excluding holiday working
7
days a week @ 19 hours per day, but couldn't seemed to find the answer
how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in date
time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions




Shane Devenshire[_2_]

Date calculation help please!
 
Hi

The returns the same answer as Bob but uses the 19 hour factor

=A1+SUM(B2:B6)/24*19

Where the start date is in A1 and the days are in B2:B6.

To handle holidays you will need to modify the approach:

=C3-NETWORKDAYS(A1,C3,M1:M5)+NETWORKDAYS(A1,C3)

In this case the first formula is in C3 and you would enter Holidays in M1:M5

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cam" wrote:

Hello,

I am trying to find a formula to calculation the estimated completion date
for different operations which returns the date excluding holiday working 7
days a week @ 19 hours per day, but couldn't seemed to find the answer how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in date time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions


Cam

Date calculation help please!
 
Thanks Shane & Bob,

I will try out the formula tomorrow. Was ask to do another item which is to
calculation the date return per shift. There are shift, 1st & 2nd shift is
6.5 and 3rd shift is 6 hrs. Do I use the same formula except /24*6.5 for 1 &
2 and /24*6 for 3 shift?

Result wanted:
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) 1st shift 2nd shift 3rd shift
10 2.045 " "
1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667



"Shane Devenshire" wrote:

Hi

The returns the same answer as Bob but uses the 19 hour factor

=A1+SUM(B2:B6)/24*19

Where the start date is in A1 and the days are in B2:B6.

To handle holidays you will need to modify the approach:

=C3-NETWORKDAYS(A1,C3,M1:M5)+NETWORKDAYS(A1,C3)

In this case the first formula is in C3 and you would enter Holidays in M1:M5

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cam" wrote:

Hello,

I am trying to find a formula to calculation the estimated completion date
for different operations which returns the date excluding holiday working 7
days a week @ 19 hours per day, but couldn't seemed to find the answer how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in date time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions


Cam

Date calculation help please!
 
Bob,

The formula is working except it doesn't exclude holiday. I have a separate
sheet called Holidays with a list of all the holidays in date.
How can I incorporate it into the formula to exclude those holidays? big
thanks.


"Bob Phillips" wrote:

This gives you the result you posted

=WORKDAY($A$1,INT(B3))+MOD(B3,1)

but I don't get why it is 01:04 AM and not 07:04 AM.

How does 19 hours factor in, what are the 5 non-working hours?

--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Hello,

I am trying to find a formula to calculation the estimated completion date
for different operations which returns the date excluding holiday working
7
days a week @ 19 hours per day, but couldn't seemed to find the answer
how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in date
time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions





Bob Phillips[_3_]

Date calculation help please!
 
=WORKDAY($A$1,INT(B3),holiday_range)+MOD(B3,1)


--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Bob,

The formula is working except it doesn't exclude holiday. I have a
separate
sheet called Holidays with a list of all the holidays in date.
How can I incorporate it into the formula to exclude those holidays? big
thanks.


"Bob Phillips" wrote:

This gives you the result you posted

=WORKDAY($A$1,INT(B3))+MOD(B3,1)

but I don't get why it is 01:04 AM and not 07:04 AM.

How does 19 hours factor in, what are the 5 non-working hours?

--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Hello,

I am trying to find a formula to calculation the estimated completion
date
for different operations which returns the date excluding holiday
working
7
days a week @ 19 hours per day, but couldn't seemed to find the answer
how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in date
time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions







Cam

Date calculation help please!
 
Bob,
Thanks, I included the holiday range (in date format), but I don't know why
it is still counting those holidays as workday.
My calendar holiday is not normal US holidays, but I thought it shouldn't
matter if it is based on the holiday list I specified. Any ideal?


"Bob Phillips" wrote:

=WORKDAY($A$1,INT(B3),holiday_range)+MOD(B3,1)


--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Bob,

The formula is working except it doesn't exclude holiday. I have a
separate
sheet called Holidays with a list of all the holidays in date.
How can I incorporate it into the formula to exclude those holidays? big
thanks.


"Bob Phillips" wrote:

This gives you the result you posted

=WORKDAY($A$1,INT(B3))+MOD(B3,1)

but I don't get why it is 01:04 AM and not 07:04 AM.

How does 19 hours factor in, what are the 5 non-working hours?

--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Hello,

I am trying to find a formula to calculation the estimated completion
date
for different operations which returns the date excluding holiday
working
7
days a week @ 19 hours per day, but couldn't seemed to find the answer
how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in date
time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions







Bob Phillips[_3_]

Date calculation help please!
 
I picked up in your new thread.

--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Bob,
Thanks, I included the holiday range (in date format), but I don't know
why
it is still counting those holidays as workday.
My calendar holiday is not normal US holidays, but I thought it shouldn't
matter if it is based on the holiday list I specified. Any ideal?


"Bob Phillips" wrote:

=WORKDAY($A$1,INT(B3),holiday_range)+MOD(B3,1)


--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Bob,

The formula is working except it doesn't exclude holiday. I have a
separate
sheet called Holidays with a list of all the holidays in date.
How can I incorporate it into the formula to exclude those holidays?
big
thanks.


"Bob Phillips" wrote:

This gives you the result you posted

=WORKDAY($A$1,INT(B3))+MOD(B3,1)

but I don't get why it is 01:04 AM and not 07:04 AM.

How does 19 hours factor in, what are the 5 non-working hours?

--
__________________________________
HTH

Bob

"Cam" wrote in message
...
Hello,

I am trying to find a formula to calculation the estimated
completion
date
for different operations which returns the date excluding holiday
working
7
days a week @ 19 hours per day, but couldn't seemed to find the
answer
how.

Column A1 is the startdate.
Column B is the production time in days required to completed.
Column C starting C3 is the calculated value of completion date in
date
time
format.

Here is the sample table:
A B C
1/2/2009 6:00 AM StartDate
Opr ProdTime (Days) ComplDate
10 2.045 1/6/09 1:04 AM
20 0.143
30 0.667
40 1.611
50 0.667

Thank for sugguestions










All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com