Complicated Conditional Formatting

sarahsarah

New Member
Joined
Feb 21, 2012
Messages
3
I have data that I need to format (a la a Gantt chart).

The data is:

-Project Name
-Project Health (3=red, 2=yellow, 1=green)
-Durations of project

My formula to code the Duration of the project works and is this: =AND(P$3>=$J4, O$3<=$M4).

However, I want to amend this formula so I can shade the Durations different colors based on their Project Health.... something along the lines of IF project health = 3, and =AND(P$3>=$J4, O$3<=$M4), then Color will be RED.

I cannot figure out how to amend the formula to do this... anyone have any ideas?

Thanks!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
At a glance, it looks like the solution would be:

=if(and(project health=3, P$3>=$J4, O$3<=$M4)

This checks the three parameters: (1) project health=3; (2) P$3>=$J4 and (3) O$3<=$M4). If all three are true, your conditional formatting will be applied.
 
Upvote 0
Thanks for that... I tried the formula, like below, but it doesn't seem to work...

=IF(AND($G4=3, P$3>=$J4, O$3<=$M4))

[$G4 is the Health Column and 3 denotes RED]
 
Upvote 0
Conditional Formatting doesn't need an IF
You need to state just the conditions when the condition(s) is/are true and the format should be applied

Try

=(AND($G4=3, P$3>=$J4, O$3<=$M4))
 
Upvote 0

Forum statistics

Threads
1,215,537
Messages
6,125,393
Members
449,222
Latest member
taner zz

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