Master Schedule: Conditional Format based on Date

Boutspers

New Member
Joined
Jun 23, 2005
Messages
28
I have a master schedule file to compile projects from various managers. There are four phases with start/end dates. I'd like to be able to enter the dates for the phases, and have the colors change in the cells to the right of the dates based on the entered dates. Is this a stacked conditional formatting formula? Thanks!


Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAF
7Pre-DesignDesignConstructionClose-out20182019
8StartFinishStartFinishStartFinishStartFinishJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDec
905/30/1810/04/1810/05/1806/23/1906/24/1908/26/1908/27/1911/01/19
102017201708/20/1806/23/1906/24/1909/20/1909/21/1912/01/19
1101/29/1902/22/1902/23/1906/04/1907/15/1909/30/1910/01/1912/01/19
1210/08/1812/16/1812/17/1806/18/1907/17/1910/01/1910/02/1912/01/19
1305/28/1806/18/1806/19/1807/31/1908/01/1910/01/1910/02/1912/01/19
1409/25/1910/05/1910/06/1910/31/1911/01/1911/30/1912/01/1912/31/19
1509/26/1801/25/1901/26/1910/15/1911/01/1912/24/1901/01/2002/01/20
1608/19/1909/01/1909/02/1912/01/1912/16/1901/02/2001/03/2003/01/20
1710/01/1910/20/1910/21/1912/01/1912/16/1901/02/2001/03/2003/01/20
1809/26/1801/25/1901/26/1902/01/20tbdtbdtbdtbd
1911/29/1801/11/1901/12/1902/01/20tbdtbdtbdtbd
2009/26/1812/30/19tbdtbdtbdtbdtbdtbd
2105/01/2006/30/2007/01/2008/30/2009/01/2010/01/20
Sheet1
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Is this a stacked conditional formatting formula?
Yes.
This may need a bit of tweaking but should get you headed in the right direction I think.
I8, J8, K8 etc are actual dates (1 Jan 2018, 1 Feb 2018 etc) formatted as "mmm"

Select I9 to end of data and apply these CF rules

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAF
7Pre-DesignDesignConstructionClose-out20182019
8StartFinishStartFinishStartFinishStartFinishJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDec
930/05/20184/10/20185/10/201823/06/201924/06/201926/08/201927/08/20191/11/2019
102017201720/08/201823/06/201924/06/201920/09/201921/09/20191/12/2019
1129/01/201922/02/201923/02/20194/06/201915/07/201930/09/20191/10/20191/12/2019
128/10/201816/12/201817/12/201818/06/201917/07/20191/10/20192/10/20191/12/2019
1328/05/201818/06/201819/06/201831/07/20191/08/20191/10/20192/10/20191/12/2019
1425/09/20195/10/20196/10/201931/10/20191/11/201930/11/20191/12/201931/12/2019
1526/09/201825/01/201926/01/201915/10/20191/11/201924/12/20191/01/20201/02/2020
1619/08/20191/09/20192/09/20191/12/201916/12/20192/01/20203/01/20201/03/2020
171/10/201920/10/201921/10/20191/12/201916/12/20192/01/20203/01/20201/03/2020
1826/09/201825/01/201926/01/20191/02/2020tbdtbdtbdtbd
1929/11/201811/01/201912/01/20191/02/2020tbdtbdtbdtbd
2026/09/201830/12/2019tbdtbdtbdtbdtbdtbd
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I91. / Formula is =AND(ISNUMBER($G9),MEDIAN($G9,$H9,I$8)=I$8)Abc
I92. / Formula is =AND(ISNUMBER($E9),MEDIAN($E9,$F9,I$8)=I$8)Abc
I93. / Formula is =AND(ISNUMBER($C9),MEDIAN($C9,$D9,I$8)=I$8)Abc
I94. / Formula is =AND(ISNUMBER($A9),MEDIAN($A9,$B9,I$8)=I$8)Abc
 
Last edited:
Upvote 0
That worked great! The key was changing the months to dates instead of text (but still formatted as 'mmm').
Thank you!!
 
Upvote 0
That worked great! The key was changing the months to dates instead of text (but still formatted as 'mmm').
Thank you!!
You're welcome. Glad that was accurate enough for you.
I did wonder about those couple of uncoloured cells at AA11:AA12 in my screen shot, but then I suppose those two projects do have small breaks between the end of the Design period and the start of the Construction period. :)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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