Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 275
Default Conditional Formatting

I need to change the fill color based on the values of other cells.
Ex. if A1 is not a null value and the cell I want to format A2 is a null
then I need A2 to have a red fill color and a certain text. If A2 isn't a
null then it should turn green. If A1 and A2 have null values then A2 should
be yellow.
So just to sum up
A1<"" and A2 ="" then Make A2=Red Fill Color + text
A1<"" and A2 <"" then A2=Green Fill Color
A1="" and A2 ="" then A2=Yellow Fill Color
Thanks for the help all.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Formatting

What version of Excel are you using?

--
Biff
Microsoft Excel MVP


"Anthony" wrote in message
...
I need to change the fill color based on the values of other cells.
Ex. if A1 is not a null value and the cell I want to format A2 is a null
then I need A2 to have a red fill color and a certain text. If A2 isn't a
null then it should turn green. If A1 and A2 have null values then A2
should
be yellow.
So just to sum up
A1<"" and A2 ="" then Make A2=Red Fill Color + text
A1<"" and A2 <"" then A2=Green Fill Color
A1="" and A2 ="" then A2=Yellow Fill Color
Thanks for the help all.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Conditional Formatting

Select Cell A2
Format | Conditional Format...

Condition1
Formula is
=and(A1<"", A2="")
Format to a red colour

Condition 2
=and(A1="", A2="")
Format to a yellow colour

Condition 3
=and(A1<"", A2<"")
Format to a green colour

As for adding Text that is not possible with a CF. You will want to put a
formula in an adjacent cell to pop up the text. There is a way to do it with
the camera tool but it is kind of fussy to set up.
http://spreadsheetpage.com/index.php...e_camera_tool/
--
HTH...

Jim Thomlinson


"Anthony" wrote:

I need to change the fill color based on the values of other cells.
Ex. if A1 is not a null value and the cell I want to format A2 is a null
then I need A2 to have a red fill color and a certain text. If A2 isn't a
null then it should turn green. If A1 and A2 have null values then A2 should
be yellow.
So just to sum up
A1<"" and A2 ="" then Make A2=Red Fill Color + text
A1<"" and A2 <"" then A2=Green Fill Color
A1="" and A2 ="" then A2=Yellow Fill Color
Thanks for the help all.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 275
Default Conditional Formatting

Tank you works well.

"Jim Thomlinson" wrote:

Select Cell A2
Format | Conditional Format...

Condition1
Formula is
=and(A1<"", A2="")
Format to a red colour

Condition 2
=and(A1="", A2="")
Format to a yellow colour

Condition 3
=and(A1<"", A2<"")
Format to a green colour

As for adding Text that is not possible with a CF. You will want to put a
formula in an adjacent cell to pop up the text. There is a way to do it with
the camera tool but it is kind of fussy to set up.
http://spreadsheetpage.com/index.php...e_camera_tool/
--
HTH...

Jim Thomlinson


"Anthony" wrote:

I need to change the fill color based on the values of other cells.
Ex. if A1 is not a null value and the cell I want to format A2 is a null
then I need A2 to have a red fill color and a certain text. If A2 isn't a
null then it should turn green. If A1 and A2 have null values then A2 should
be yellow.
So just to sum up
A1<"" and A2 ="" then Make A2=Red Fill Color + text
A1<"" and A2 <"" then A2=Green Fill Color
A1="" and A2 ="" then A2=Yellow Fill Color
Thanks for the help all.

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--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 02:13 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"