Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Conditional formatting based on numbers in columns


Hi,

I would like to change the background color of a two cells (row by row)
based on values in two other cells in the same row.


If C10 AND if C1D1, the background color of cell A1 turns green and B1
turns red.

but If C10 AND C1=D1, the background colors of both cells, A1 and B1 turn
green.


Ex:
A B C D
1 Green Red 1 0
2 Green Green 12 12
3 No change in background color

Thank you!


--
Kind regards, Nic
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Conditional formatting based on numbers in columns


Condition formula for Column A:
=AND(C10,C1=D1)
Condition formula1 for Column B:
=AND(C10,C1D1) red
=AND(C10,C1=D1) green

Regards,
Stefi

€˛Nic Daniels€¯ ezt Ć*rta:

Hi,

I would like to change the background color of a two cells (row by row)
based on values in two other cells in the same row.


If C10 AND if C1D1, the background color of cell A1 turns green and B1
turns red.

but If C10 AND C1=D1, the background colors of both cells, A1 and B1 turn
green.


Ex:
A B C D
1 Green Red 1 0
2 Green Green 12 12
3 No change in background color

Thank you!


--
Kind regards, Nic

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Conditional formatting based on numbers in columns


Hi,

For you first condition apply this to A1 and select Red

=AND(C10,C1D1)

Click ADD and apply this second condition to A1 and choose Green

=AND(C10,C1=D1)

Repeat the above for B1 choosing the appropriate colours.

Mike

"Nic Daniels" wrote:

Hi,

I would like to change the background color of a two cells (row by row)
based on values in two other cells in the same row.


If C10 AND if C1D1, the background color of cell A1 turns green and B1
turns red.

but If C10 AND C1=D1, the background colors of both cells, A1 and B1 turn
green.


Ex:
A B C D
1 Green Red 1 0
2 Green Green 12 12
3 No change in background color

Thank you!


--
Kind regards, Nic

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Conditional formatting based on numbers in columns


Thank you!




--
Kind regards, Nic


"Stefi" wrote:

Condition formula for Column A:
=AND(C10,C1=D1)
Condition formula1 for Column B:
=AND(C10,C1D1) red
=AND(C10,C1=D1) green

Regards,
Stefi

€˛Nic Daniels€¯ ezt Ć*rta:

Hi,

I would like to change the background color of a two cells (row by row)
based on values in two other cells in the same row.


If C10 AND if C1D1, the background color of cell A1 turns green and B1
turns red.

but If C10 AND C1=D1, the background colors of both cells, A1 and B1 turn
green.


Ex:
A B C D
1 Green Red 1 0
2 Green Green 12 12
3 No change in background color

Thank you!


--
Kind regards, Nic

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Conditional formatting based on numbers in columns


Thank you!






--
Kind regards, Nic


"Mike H" wrote:

Hi,

For you first condition apply this to A1 and select Red

=AND(C10,C1D1)

Click ADD and apply this second condition to A1 and choose Green

=AND(C10,C1=D1)

Repeat the above for B1 choosing the appropriate colours.

Mike

"Nic Daniels" wrote:

Hi,

I would like to change the background color of a two cells (row by row)
based on values in two other cells in the same row.


If C10 AND if C1D1, the background color of cell A1 turns green and B1
turns red.

but If C10 AND C1=D1, the background colors of both cells, A1 and B1 turn
green.


Ex:
A B C D
1 Green Red 1 0
2 Green Green 12 12
3 No change in background color

Thank you!


--
Kind regards, Nic



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Conditional formatting based on numbers in columns

You are welcome! Thanks for the feedback!
Stefi

€˛Nic Daniels€¯ ezt Ć*rta:

Thank you!




--
Kind regards, Nic


"Stefi" wrote:

Condition formula for Column A:
=AND(C10,C1=D1)
Condition formula1 for Column B:
=AND(C10,C1D1) red
=AND(C10,C1=D1) green

Regards,
Stefi

€˛Nic Daniels€¯ ezt Ć*rta:

Hi,

I would like to change the background color of a two cells (row by row)
based on values in two other cells in the same row.


If C10 AND if C1D1, the background color of cell A1 turns green and B1
turns red.

but If C10 AND C1=D1, the background colors of both cells, A1 and B1 turn
green.


Ex:
A B C D
1 Green Red 1 0
2 Green Green 12 12
3 No change in background color

Thank you!


--
Kind regards, Nic

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
Conditional Formatting based on positive/negative numbers Nevyn Excel Discussion (Misc queries) 4 April 3rd 23 06:56 PM
Conditional function row formatting based on columns values being medic Excel Discussion (Misc queries) 2 November 6th 09 06:33 PM
Conditional formatting based on max in range of other columns Steve Excel Worksheet Functions 2 September 22nd 09 04:57 PM
Conditional Formatting Based of Cells Based on Data Entry in anoth Jim Excel Discussion (Misc queries) 3 November 11th 08 11:52 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM


All times are GMT +1. The time now is 09:32 PM.

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

About Us

"It's about Microsoft Excel"