ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Formatting Dilema (https://www.excelbanter.com/excel-discussion-misc-queries/221860-conditional-formatting-dilema.html)

David Seese

Conditional Formatting Dilema
 
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.

Chip Pearson

Conditional Formatting Dilema
 
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($F 1))))
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
wrote:

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.


David Seese[_2_]

Conditional Formatting Dilema
 
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.

"Chip Pearson" wrote:

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($F 1))))
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
wrote:

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.



Shane Devenshire[_2_]

Conditional Formatting Dilema
 
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<""

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David Seese" wrote:

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.

"Chip Pearson" wrote:

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($F 1))))
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
wrote:

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.



David Seese[_2_]

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

"Chip Pearson" wrote:

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($F 1))))
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
wrote:

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.



David Seese[_2_]

Conditional Formatting Dilema
 
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.

"Shane Devenshire" wrote:

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<""

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David Seese" wrote:

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.

"Chip Pearson" wrote:

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($F 1))))
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
wrote:

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.



All times are GMT +1. The time now is 08:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com