Timeline colour cells depending on data inputted in a different cell

MRKadar

New Member
Joined
Jan 22, 2015
Messages
13
I would like to colour blank cells depending on the date change in a different cell. Please see table below *** an example.


ACTIVITY​

START​

<TBODY>
[TD="width: 16%"]
FINISH​
[/TD]
[TD="width: 8%"][/TD]
[TD="width: 7%"]
07-Jul-14​
[/TD]
[TD="width: 7%"]
14-Jul-14​
[/TD]
[TD="width: 7%"]
21-Jul-14​
[/TD]
[TD="width: 7%"]
28-Jul-14​
[/TD]
[TD="width: 7%"]
04-Aug-14​
[/TD]
[TD="width: 7%"]
11-Aug-14​
[/TD]

[TD="width: 16%"]
A​
[/TD]
[TD="width: 16%"]
29-May-14​
[/TD]
[TD="width: 16%"]
07-Aug-14​
[/TD]
[TD="width: 8%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]

[TD="width: 16%"]
B​
[/TD]
[TD="width: 16%"]
05-Jun-14​
[/TD]
[TD="width: 16%"]
22-Aug-14​
[/TD]
[TD="width: 8%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]

[TD="width: 16%"]
C​
[/TD]
[TD="width: 16%"]
30-Jun-14​
[/TD]
[TD="width: 16%"]
23-Sep-14​
[/TD]
[TD="width: 8%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]

[TD="width: 16%"]
D​
[/TD]
[TD="width: 16%"]
22-Jul-14​
[/TD]
[TD="width: 16%"]
04-Aug-14​
[/TD]
[TD="width: 8%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]

[TD="width: 16%"]
E​
[/TD]
[TD="width: 16%"]
08-Sep-14​
[/TD]
[TD="width: 16%"]
24-Oct-14​
[/TD]
[TD="width: 8%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]
[TD="width: 7%"][/TD]

</TBODY>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Ok, try this formula in cell E3, copy paste down and across .
You should see 1 under the relevant dates, 2 under irrelevant dates!

=IF(AND(E$1>=$B3,E$1<$C3),"1","2")
 
Upvote 0
Did that work as expected? If it did then the conditional format should work with the formula i posted earlier!
 
Upvote 0
Delete the formulas from all of the cells, then

Select the 1st cell you want to format
Select "Format" on the top menu
Then select "Conditional Formatting"
Click + (bottom left)
Select the drop down (where it says "Style"
Select "Classic"
Select the next drop down (where it says :Formatonly....."
Select "Use a formula...."
Enter the formula
=AND(E$1>=$B3,E$1<$C3)
Select next drop down "Format with"
Select "Fill"
Then Under "Background" Select the colour you want
Select OK
And OK again
Lastly make sure that you select the "Applies to" range, this is all the cells you want to apply it to
 
Upvote 0
In 2010 i think you have an option "New Rule"
(I'm using 2010 for Mac, slightly different!)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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