My conditional formatting code does not work

ruthdennise

New Member
Joined
Aug 31, 2017
Messages
2
Hello! I am doing a multiple project Gantt chart that looks like this:

1117935

The sheet gets its data from another sheet named "DATA" as shown below:
1117938

What I want to happen in the ACTUAL PART is when the date for the specific step is equal to the plan, the color of the cell will be GREEN and RED if not. What I did for the actual was I set its default color as GREEN just like this:

1117944

The problem is, the code to fill the cell RED if the PLAN and ACTUAL does not match does not work. My code for the RED was this:
=IF(AND(ISEVEN(ROW()),DATA!$C2<>DATA!$C3),AND(DATA!$C2<=C$2, DATA!$C2 >=C$2),0)

Please help me. I've been working on this since yesterday.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
What's in C2 on the chart page (not the data page) ?

Is it a real date, formated to show the month only ?
Or is it a bit of text that says "Jan" ?
 
Upvote 0
AND(DATA!$C2<=C$2, DATA!$C2 >=C$2)
Greater and smaller isn't posibble. left:
DATA!$C2=C$2
 
Upvote 0

Forum statistics

Threads
1,224,858
Messages
6,181,431
Members
453,040
Latest member
Santero

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