Changing a cell color based on a date comparison

soozy

New Member
Joined
Apr 1, 2014
Messages
2
Hello

Am new to excel formulas, and while I have tried to solve this problem, I really need some help :biggrin:

I have a job sheet, with a job start date and a job due date. I manually create a timeline with 2 colors of cell to visually show when a job starts and when it is due.

Here's a screen grab:
13569975883_b9b7e0a38e_b.jpg


So, I'd like to write two conditional formatting formulas, one that looks at the start date in column B, then colors the boxes on the right (in the visual timeline) blue from the start date up until the due date.

And a second formula that colors the due date red.

Many thanks in advance
Soozy
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hello, Soozy.
Try this way and see if it could help.

Assuming the timeline starts on row 2, select that range starting in CS2 and extend it as desired.
In the Conditional Format >> New rule >> Use a formula... >> into the box formula put:
=AND(F$1>=$B2;F$1<$C2) and format to blue

In the Conditional Format >> New rule >> Use a formula... >> into the box formula put:
=F$1=$C2 and format to red
 
Upvote 0
Hi Osvaldo

Thank you so much for you help. I now have an excel spreadsheet that functions the way I need it too :cool:. A colleague popped over to change the ; to a , in the formula, might be a mac/pc formula difference.

Many thanks
Soozy
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,429
Members
448,961
Latest member
nzskater

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