4 day work week

S

Shelly

What I need to do is have a project start date and an end date and a
duration of days. We work a 4 day work week here and I need to not count
Friday (Sat or Sun) in the duration of the projects. I just need a correct
end date for the projects.

Thanks so much!!!
 
B

Bob Phillips

use this to calculate the working days

=SUMPRODUCT(INT((MAX(end_date,start_date)-WEEKDAY(MAX(end_date,start_date)+1-{2;3;4;5})-MIN(end_date,start_date)+8)/7))

or this if you want to exclude holidays

=SUMPRODUCT(INT((MAX(end_date,start_date)-WEEKDAY(MAX(end_date,start_date)+1-{2;3;4;5})-MIN(end_date,start_date)+8)/7))
-SUMPRODUCT(ISNUMBER(MATCH(WEEKDAY(holidays),{2;3;4;5},0))*(holidays>=MIN(end_date,start_date))*(holidays<=MAX(end_date,start_date)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
T

Teethless mama

A1: start date
A2: end date

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)),2)<5))
 
S

Shelly

I'm very new at this program so please bear with me...I did type the formula
in and it didn't work. I think I am just not putting the right information in
the correct fields. The schedule is set up to have A1 to be the start date
and B1 the finish date. We have multiple units being built at once. They take
10 days to complete, with a 4-day workweek. If you could walk me through
it...that would be so great! And thank you for responding!
 
B

Bob Phillips

If you know the start date, and the end date and how long it takes, what
exactly are you trying to calculate?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

Bob Phillips

=start_date+SIGN(days)*SMALL(IF((WEEKDAY(start_date+SIGN(days)*(ROW(INDIRECT("1:"&ABS(days)*10))))={1,2,3,4}),ROW(INDIRECT("1:"&ABS(days)*10))),ABS(days))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
S

Shelly

Where do I put this information?

Bob Phillips said:
=start_date+SIGN(days)*SMALL(IF((WEEKDAY(start_date+SIGN(days)*(ROW(INDIRECT("1:"&ABS(days)*10))))={1,2,3,4}),ROW(INDIRECT("1:"&ABS(days)*10))),ABS(days))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

Bob Phillips

Anywhere. You just change the variable names to the appropriate cells.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
S

Shelly

Thank you for your time Bob!


Bob Phillips said:
Anywhere. You just change the variable names to the appropriate cells.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top