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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
=if(and(a=1,b<>C),and(d=3,e<>f),0)

in my opinion that is what you have - why two "and's" /
 
Upvote 0
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,213,538
Messages
6,114,220
Members
448,554
Latest member
Gleisner2

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