mb8marmed
New Member
- Joined
- Feb 15, 2020
- Messages
- 11
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
- 2003 or older
- Platform
- Windows
- MacOS
- Mobile
- Web
I was trying to provide conditional formatting in my Gantt Chart. However, I have difficulty developing a formula that will trigger to highlight the cell or range, as the date is not a usual one. I'm hoping that someone from this group can help me solve the issue. I manually provided the colors for visualization, and the conditional formatting is supposed to work on this, but it's not working the way I wanted.
Thank you in advance.
Thank you in advance.
Gantt Chart Formula.xlsx | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |||
1 | Start Date | 1-Jan-22 | |||||||||||||||||||||||||||||||||||||||||
2 | 2022 | ||||||||||||||||||||||||||||||||||||||||||
3 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |||||||||||||||||||||||||||||||
4 | # | Activity | Start | End | Days | 2-Jan | 15-Jan | 28-Jan | 1-Feb | 14-Feb | 27-Feb | 1-Mar | 14-Mar | 27-Mar | 1-Apr | 14-Apr | 27-Apr | 1-May | 14-May | 27-May | 1-Jun | 14-Jun | 27-Jun | 1-Jul | 14-Jul | 27-Jul | 1-Aug | 14-Aug | 27-Aug | 1-Sep | 14-Sep | 27-Sep | 1-Oct | 14-Oct | 27-Oct | 1-Nov | 14-Nov | 27-Nov | 1-Dec | 14-Dec | 27-Dec | ||
5 | |||||||||||||||||||||||||||||||||||||||||||
6 | 1 | Activity 1 | 2-Mar-22 | 21-Sep-22 | 203 | ||||||||||||||||||||||||||||||||||||||
7 | a | Sub-Activity 1.2 | 2-Mar-22 | ||||||||||||||||||||||||||||||||||||||||
8 | b | Sub-Activity 1.3 | 5-Apr-22 | ||||||||||||||||||||||||||||||||||||||||
9 | c | Sub-Activity 1.4 | 15-May-22 | ||||||||||||||||||||||||||||||||||||||||
10 | d | Sub-Activity 1.5 | 30-Jun-22 | ||||||||||||||||||||||||||||||||||||||||
11 | e | Sub-Activity 1.6 | 8/10/2022 | ||||||||||||||||||||||||||||||||||||||||
12 | f | Sub-Activity 1.7 | 9/21/2022 | ||||||||||||||||||||||||||||||||||||||||
13 | |||||||||||||||||||||||||||||||||||||||||||
14 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 | |||||||
Gantt Chart |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G1:M1,R1:AP1 | G1 | =IF(AND(MONTH(G$4)=MONTH($D6),AND($D6<=G$4*G$14*13,$D6<G$4)),"x","") |
G2 | G2 | =T4 |
G3,J3,M3,P3,S3,V3,Y3,AB3,AE3,AH3,AK3,AN3 | G3 | =H4 |
G4 | G4 | =IF(MONTH(D1-WEEKDAY((D1),2)+1)<MONTH(D1),(D1-28-DAY(D1)+7)-WEEKDAY((D1-DAY(D1)+7),2)+1,(D1-DAY(D1)+7)-WEEKDAY((D1-DAY(D1)+7),2)) |
H4:AP4 | H4 | =IF(G4+13>EOMONTH(G4,0),EOMONTH(G4,0)+1,G4+13) |
F5:F13 | F5 | =IF(AND(D5<>"",E5<>""),E5-D5,"") |
G5:AP13 | G5 | =IF(AND(MONTH(G$4)=MONTH($D6),AND($D6<=G$4*G$14*13,$D6<G$4)),"x","") |
D6 | D6 | =MIN(D7:D12) |
E6 | E6 | =MAX(D7:D12) |
Press CTRL+SHIFT+ENTER to enter array formulas. |