Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default conditionally formatting colour of cells

Is there a way to automate the colour of a cell based on the value of another
cell even though the cell I'm colouring has its own formula already?

For example, if a21 is a positive number, I want b21 to be green. If a21 is
negative, I want b21 to be red. If it's 0 then white. But B21 is already a
sum total of something else so I don't want to disrupt that formula
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default conditionally formatting colour of cells

Hi,

Yes you can do that with conditional formatting. Select B21 and then

Format|Conditional formatting - Select 'Formula Is' from the dropdown
Enter the formula
=A210
click format and select Green OK

Click ADD and repeat the above but this time use the formula
=A21<0 and pick Red

Note that the cell will not be coloured if A21 =0

Mike

"trishb" wrote:

Is there a way to automate the colour of a cell based on the value of another
cell even though the cell I'm colouring has its own formula already?

For example, if a21 is a positive number, I want b21 to be green. If a21 is
negative, I want b21 to be red. If it's 0 then white. But B21 is already a
sum total of something else so I don't want to disrupt that formula

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default conditionally formatting colour of cells

Conditional formatting does not disrupt formulas in cells.

CF does not change the value in a cell, just changes the color or font or
border.

Mike has given you the steps for CF.


Gord Dibben MS Excel MVP


On Fri, 11 Dec 2009 12:20:34 -0800, trishb
wrote:

Is there a way to automate the colour of a cell based on the value of another
cell even though the cell I'm colouring has its own formula already?

For example, if a21 is a positive number, I want b21 to be green. If a21 is
negative, I want b21 to be red. If it's 0 then white. But B21 is already a
sum total of something else so I don't want to disrupt that formula


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
formatting colour in cells when one cell contains a character wilko[_2_] Excel Worksheet Functions 1 September 14th 09 01:27 AM
Conditionally Formatting Cells based on Values in a Range (2007) sreid64 Excel Worksheet Functions 3 August 26th 09 08:15 PM
conditionally formatting cells based on other cells Derrick Excel Discussion (Misc queries) 1 July 7th 09 09:43 PM
Toggle Cell Colour Conditionally Ken McLennan[_2_] Excel Worksheet Functions 6 September 11th 08 04:55 PM
Conditionally formatting other cells? brett Excel Worksheet Functions 3 December 20th 05 11:09 PM


All times are GMT +1. The time now is 06:07 PM.

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"