Cells Changing Colour To Match Critical Path Dates

StuckWithExcel

New Member
Joined
Apr 25, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I've created a Critical Path for a project, shown in the image.

Columns C & D are the Start and End Dates respectively, and I'm keen for the subsequent cells (here F5:AP44) to automatically fill with colour (say, light blue) as the Start & End Dates are updated.

I've seen it done in a previous job but no idea how it's done!

Your help is much appreciated and I hope this can help others with the same question as I've scoured the internet for an answer, but most tutorials seem to be around Conditional Dates relative to today, which is not what I'm after.

Thanks.
 

Attachments

  • Critical Path Image.png
    Critical Path Image.png
    27 KB · Views: 8

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
MrExcelPlayground16.xlsx
ABCDEFGHIJKLMNOPQRST
1Project A4/24/20235/1/20235/8/20235/15/20235/22/20235/29/20236/5/20236/12/20236/19/20236/26/20237/3/20237/10/20237/17/20237/24/20237/31/2023
2Task NameStartEndStatus
3Scope4/24/20237/12/2023
4Do a thing4/24/20235/12/2023
5More Stuff5/1/20235/28/2023
6Other things5/15/20236/6/2023
7Good5/27/20237/12/2023
8
9Technical Elements5/1/20236/30/2023
10More stuf5/1/20236/1/2023
11okay6/2/20236/10/2023
12good6/11/20236/30/2023
13
14Create Content6/11/20237/15/2023
15Task 16/11/20236/15/2023
16Task 26/16/20236/30/2023
17Task36/16/20237/15/2023
18
19Write and film6/30/20238/1/2023
20Go6/30/20237/15/2023
21And 7/1/20237/10/2023
22Do it7/16/20238/1/2023
Sheet25
Cell Formulas
RangeFormula
G1:T1G1=F1+7
C3C3=MIN(C4:C8)
D3D3=MAX(D4:D8)
C9,C19,C14C9=MIN(C10:C13)
D9,D19,D14D9=MAX(D10:D13)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:AE22Expression=AND($C3<G$1,$D3>=F$1)textNO
 
Upvote 1
Solution
MrExcelPlayground16.xlsx
ABCDEFGHIJKLMNOPQRST
1Project A4/24/20235/1/20235/8/20235/15/20235/22/20235/29/20236/5/20236/12/20236/19/20236/26/20237/3/20237/10/20237/17/20237/24/20237/31/2023
2Task NameStartEndStatus
3Scope4/24/20237/12/2023
4Do a thing4/24/20235/12/2023
5More Stuff5/1/20235/28/2023
6Other things5/15/20236/6/2023
7Good5/27/20237/12/2023
8
9Technical Elements5/1/20236/30/2023
10More stuf5/1/20236/1/2023
11okay6/2/20236/10/2023
12good6/11/20236/30/2023
13
14Create Content6/11/20237/15/2023
15Task 16/11/20236/15/2023
16Task 26/16/20236/30/2023
17Task36/16/20237/15/2023
18
19Write and film6/30/20238/1/2023
20Go6/30/20237/15/2023
21And 7/1/20237/10/2023
22Do it7/16/20238/1/2023
Sheet25
Cell Formulas
RangeFormula
G1:T1G1=F1+7
C3C3=MIN(C4:C8)
D3D3=MAX(D4:D8)
C9,C19,C14C9=MIN(C10:C13)
D9,D19,D14D9=MAX(D10:D13)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:AE22Expression=AND($C3<G$1,$D3>=F$1)textNO

You are an absolute hero.

Tweaked it to suit my spreadsheet and it worked within 5 mins...I can't thank you enough, you've saved me hours.

Thanks!
 

Attachments

  • Critical Path Image Complete.png
    Critical Path Image Complete.png
    51.4 KB · Views: 7
Upvote 0
Happy to be of service. Stick around on this site and you won't be stuckwithexcel, you'll be excelisstuckwithme.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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