Conditional Formatting Dilema

D

David Seese

I have a spreadsheet that has 6 columns. I want to set up conditional
formatting on the whole row that will change the color of the row based on if
there is data entered in column 1, 2, or 6. If there is any value in column 1
I want the row to be red. When either 2 or 6 has data entered, the row should
turn yellow. When both 2 and 6 have data, the row turns green.
 
C

Chip Pearson

Select the row(s) to be formatted, open the Conditional Formatting
dialog and enter

Condition 1: Formula Is
=LEN($A1)
format for red.

Condition 2: Formula Is
=AND(OR(LEN($B1),LEN($F1)),NOT(AND(LEN($B1),LEN($F1))))
format for yellow.

Condition 3: Formula Is
=AND(LEN($B1),LEN($F1))
format for green.

Change the "1" row number to the appropriate row.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Sat, 21 Feb 2009 14:06:01 -0800, David Seese <David
 
D

David Seese

The row just stays red even after the other cells are populated. Cell one is
the time an incident opened, two is the time it was closed, and six is simply
an X to show if a reason for outage has been submitted. The row needs to turn
red when the incident is opened. When it is closed or if the RFO is submitted
it turns yellow. When both of the latter are complete it turns green. I hope
this helps a little more.
 
S

Shane Devenshire

The key here is the order of the conditions:

Highlight the whole range say A2:F10

Condition 1: Green
=AND($B2<>"",$F2<>"")

Condition 2: Yellow
=OR($B2<>"",$F2<>"")

Condition 3: Red
=$A2<>""
 
D

David Seese

Disregard the last post. I changed the red condition to the end of the list
and everything works great. Thanks for your quick help.
 
D

David Seese

I figured that out on my own right after I posted the last response. Thanks
for your help on this one. I'm sure it will save someone else the time trying
to find the answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top