Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default 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.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default 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.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default 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.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bi-weekly date dilema Spongebob Excel Worksheet Functions 8 September 10th 08 03:27 PM
excel dilema sam23 Excel Discussion (Misc queries) 3 July 12th 07 09:20 AM
IF Dilema detail Shu of AZ Excel Discussion (Misc queries) 6 December 26th 06 05:08 AM
IF Dilema Shu of AZ Excel Discussion (Misc queries) 10 December 24th 06 06:15 PM
sorting dilema Bobbie Excel Discussion (Misc queries) 3 January 5th 05 06:01 PM


All times are GMT +1. The time now is 03:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"