Hello,
So I am building somewhat of a gantt chart. The following is a snap shot. What i am trying to do is bascially put a number "8" in this example in every day for that project. I do have holidays listed in a seperate holiday tab. So while i have this formula working i cannot figure out how to keep a holiday column blank and continue placing "8" until the duration is hit. Any help would be appreciated.
Bonus - For workday formula why doesnt this work? I have some formulas in column F that i use to reference holidays but it errors out due to the """" (blank) cells based on the formulas. Again any help is much appreciated!
So I am building somewhat of a gantt chart. The following is a snap shot. What i am trying to do is bascially put a number "8" in this example in every day for that project. I do have holidays listed in a seperate holiday tab. So while i have this formula working i cannot figure out how to keep a holiday column blank and continue placing "8" until the duration is hit. Any help would be appreciated.
SRI Schedule Prototype -Updated Cond.xlsx | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | AR | AS | AT | AU | AV | AW | AX | AY | AZ | BA | BB | BC | BD | BE | BF | BG | BH | BI | BJ | BK | BL | BM | BN | BO | BP | BQ | BR | BS | BT | BU | BV | BW | BX | BY | BZ | CA | CB | CC | CD | CE | CF | CG | CH | CI | CJ | CK | CL | CM | CN | |||
1 | Duration | Contract | Submittals | Labor Req. | Emp. Count | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | |||||||||
2 | Jan | Jan | Jan | Jan | Feb | Feb | Feb | Feb | Mar | Mar | Mar | Mar | Mar | Apr | Apr | Apr | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 | Job # | Job Name | Roof System | PM | Supt | Start Date | End Date | Contractor | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 30 | 31 | 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 31 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | ||||||
4 | Testing Tester | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | 3376 | Project River | Rhinobond | JS | BM | 1/1/2023 | 4/25/2023 | 81 | Y | A | G | Clayco | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | ||
6 | 3411 | Dhamer Drive Spec Bldg | Rhinobond | JS | BM | 1/24/2023 | N | NS | Meridian | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7 | 3416 | Bridge McCook Bldg #1 | EPDM/Ballast | JS | BM | 5/17/2023 | Y | NS | ARCO | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Schedule |
Cell Formulas | ||
---|---|---|
Range | Formula | |
M1:CN1 | M1 | =IF(SUM(M4:M27)=0,"",SUM(M4:M27)) |
M2,R2,W2,AB2,AG2,AL2,AQ2,AV2,BA2,BF2,BK2,BP2,BU2,BZ2,CE2,CJ2 | M2 | =CHOOSE(MONTH(O3),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") |
M3 | M3 | =WORKDAY(Holidays!C3,1) |
N3:CN3 | N3 | =WORKDAY(M3,1) |
M4:CN7 | M4 | =IFERROR(IF(AND(M$3>=$F4,M$3<=WORKDAY($F4,$H4-1)),8,""),"") |
G5 | G5 | =WORKDAY(F5,H5,Holidays!I4) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
M3:JQ27 | Expression | =COUNTIFS(Holidays!$F$3:$F$34,M$3) | text | NO |
4:50 | Expression | =AND(NOT(ISBLANK($B4)),ISBLANK($A4)) | text | NO |
H1:H3,I:I | Expression | =AND(NOT(ISBLANK($A1)),$I1="N") | text | NO |
H1:H3,I:I | Expression | =AND(NOT(ISBLANK($A1)),$I1="Y") | text | NO |
J:J | Expression | =AND(NOT(ISBLANK($A1)),$J1="S") | text | NO |
J:J | Expression | =AND(NOT(ISBLANK($A1)),$J1="NS") | text | NO |
J:J | Expression | =AND(NOT(ISBLANK($A1)),$J1="A") | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
I4:I45 | List | =Holidays!$Z$2:$Z$3 |
J4:J45 | List | =Holidays!$AA$2:$AA$4 |
Bonus - For workday formula why doesnt this work? I have some formulas in column F that i use to reference holidays but it errors out due to the """" (blank) cells based on the formulas. Again any help is much appreciated!
SRI Schedule Prototype -Updated Cond.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | YEAR | 2023 | ||||||
2 | Holidays | When do they occur? | Actual Date | Include | Day of Week | Calc'd Date | ||
3 | New Year's Day | January 1st | 1/1/2023 | Y | Sunday | 1/2/2023 | ||
4 | Martin Luther King Day | 3rd Monday in January | 1/16/2023 | N | Monday | |||
5 | President's Day | 3rd Monday in February | 2/20/2023 | N | Monday | |||
6 | Easter Sunday | Western Observation | 4/9/2023 | N | Sunday | |||
7 | Mother's Day | 2nd Sunday in May | 5/14/2023 | N | Sunday | |||
8 | Memorial Day | Last Monday in May | 5/29/2023 | Y | Monday | 5/29/2023 | ||
9 | Father's Day | 3rd Sunday in June | 6/18/2023 | N | Sunday | |||
10 | Independence Day | July 4th | 7/4/2023 | Y | Tuesday | 7/4/2023 | ||
11 | Labor Day | 1st Monday in September | 9/4/2023 | Y | Monday | 9/4/2023 | ||
12 | Columbus Day | 2nd Monday in October | 10/9/2023 | N | Monday | |||
13 | Veteran's Day | November 11th | 11/11/2023 | N | Saturday | |||
14 | Thanksgiving Day | 4th Thursday in November | 11/23/2023 | Y | Thursday | 11/23/2023 | ||
15 | Day After Thanksgiving | 4th Friday in November | 11/24/2023 | N | Friday | |||
16 | Christmas Eve | December 24th | 12/24/2023 | N | Sunday | |||
17 | Christmas Day | December 25th | 12/25/2023 | Y | Monday | 12/25/2023 | ||
18 | YEAR | 2024 | ||||||
19 | Holidays | When do they occur? | Actual Date | Include | Day of Week | Calc'd Date | ||
20 | New Year's Day | January 1st | 1/1/2024 | Y | Monday | 1/1/2024 | ||
21 | Martin Luther King Day | 3rd Monday in January | 1/15/2024 | N | Monday | |||
22 | President's Day | 3rd Monday in February | 2/19/2024 | N | Monday | |||
23 | Easter Sunday | Western Observation | 3/31/2024 | N | Sunday | |||
24 | Mother's Day | 2nd Sunday in May | 5/12/2024 | N | Sunday | |||
25 | Memorial Day | Last Monday in May | 5/27/2024 | Y | Monday | 5/27/2024 | ||
26 | Father's Day | 3rd Sunday in June | 6/16/2024 | N | Sunday | |||
27 | Independence Day | July 4th | 7/4/2024 | Y | Thursday | 7/4/2024 | ||
28 | Labor Day | 1st Monday in September | 9/2/2024 | Y | Monday | 9/2/2024 | ||
29 | Columbus Day | 2nd Monday in October | 10/14/2024 | N | Monday | |||
30 | Veteran's Day | November 11th | 11/11/2024 | N | Monday | |||
31 | Thanksgiving Day | 4th Thursday in November | 11/28/2024 | Y | Thursday | 11/28/2024 | ||
32 | Day After Thanksgiving | 4th Friday in November | 11/29/2024 | N | Friday | |||
33 | Christmas Eve | December 24th | 12/24/2024 | N | Tuesday | |||
34 | Christmas Day | December 25th | 12/25/2024 | Y | Wednesday | 12/25/2024 | ||
Holidays |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C3,C20 | C3 | =DATE(F1,1,1) |
C4,C21 | C4 | =DATE(F1,1,1)+14+CHOOSE(WEEKDAY(DATE(F1,1,1)),1,0,6,5,4,3,2) |
C5,C22 | C5 | =DATE(F1,2,1)+14+CHOOSE(WEEKDAY(DATE(F1,2,1)),1,0,6,5,4,3,2) |
C6,C23 | C6 | =FLOOR("5/"&DAY(MINUTE(F1/38)/2+56)&"/"&F1,7)-34 |
C7,C24 | C7 | =DATE(F1,5,1)+7+CHOOSE(WEEKDAY(DATE(F1,5,1)),0,6,5,4,3,2,1) |
C8,C25 | C8 | =DATE((F1),5,CHOOSE(WEEKDAY(DATE((F1),5,1)),30,29,28,27,26,25,31)) |
C9,C26 | C9 | =DATE(F1,6,1)+14+CHOOSE(WEEKDAY(DATE(F1,6,1)),0,6,5,4,3,2,1) |
C10,C27 | C10 | =DATE(F1,7,4) |
C11,C28 | C11 | =DATE(F1,9,1)+CHOOSE(WEEKDAY(DATE(F1,9,1)),1,0,6,5,4,3,2) |
C12,C29 | C12 | =DATE(F1,10,1)+7+CHOOSE(WEEKDAY(DATE(F1,10,1)),1,0,6,5,4,3,2) |
C13,C30 | C13 | =DATE(F1,11,11) |
C14,C31 | C14 | =DATE(F1,11,1)+21+CHOOSE(WEEKDAY(DATE(F1,11,1)),4,3,2,1,0,6,5) |
C15,C32 | C15 | =C14+1 |
C16,C33 | C16 | =DATE(F1,12,24) |
C17,C34 | C17 | =DATE(F1,12,25) |
E3:E17,E20:E34 | E3 | =TEXT(C3,"dddd") |
F3:F17,F20:F34 | F3 | =IFERROR(IF(OR(D3="N",D3=""),"",IF(AND(D3="Y",WEEKDAY(C3,2)=6),WORKDAY(C3,-1),IF(AND(D3="Y",WEEKDAY(C3,2)=7),WORKDAY(C3,1),C3))),"") |
F18 | F18 | =F1+1 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F20:F34 | Expression | =$D20="Y" | text | NO |
F3:F17 | Expression | =$D3="Y" | text | NO |
E20:E34 | Expression | =$D20="Y" | text | NO |
A20:D34 | Expression | =$D20="Y" | text | NO |
E3:E17 | Expression | =$D3="Y" | text | NO |
A3:D17 | Expression | =$D3="Y" | text | NO |