Conditional Formatting for Variance - Forecasted and Actual Dates

Danny Anibal

New Member
Joined
May 9, 2017
Messages
2
I have a set of forecasted and actual dates for different projects.

I want to be able to apply conditional formatting to the actual dates that fall before the forecasted date (in green) and after the forecasted date (in red)

See the file here:

https://www.dropbox.com/s/5yu4u3hc8sqvhda/Dates Formatting.xlsx?dl=0

This is an example data set

Project name
Forecasted Date 1
Actual Date 1
Forecasted Date 2
Actual Date 2
Forecasted Date 3
Actual Date 3
Forecasted Date 4
Actual Date 4
Project 1
17-Sep-14
13-Feb-15
1-Sep-15
1-Jun-15
16-Jun-15
25-May-15
12-Jun-15
3-Jun-15

<tbody>
</tbody>


So it should look like this with the formatting

Project name
Forecasted Date 1
Actual Date 1
Forecasted Date 2
Actual Date 2
Forecasted Date 3
Actual Date 3
Forecasted Date 4
Actual Date 4
Project 1
17-Sep-14
13-Feb-15 (red)
1-Sep-15
1-Jun-15 (green)
16-Jun-15
25-May-15 (green)
12-Jun-15
3-Jun-15 (green)

<tbody>
</tbody>

Of course I have about pairs of forecasted and actual dates and about 80 on-going projects.

I’ve created a column with the variance values and have tried to create rules using the variances as reference for the formatting.

Where $BB$5:BB$74 is the column with the variance between the pair of forecasted and actual dates.

https://www.dropbox.com/s/loav24kniubx4cv/Capture3.PNG?dl=0

And where$H$5:$H$74 is the column of the Actual date, the column that I want the formatting on

https://www.dropbox.com/s/4pii639oyy61dd9/Capture4.PNG?dl=0
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
two rules for this

rule one:
=AND(C3 < B3,LEFT(C2,1)="A")
turns cell green

rule two:
=AND(C3>B3,LEFT(C2,1)="A")
turns cell red
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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