Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
fyrfytr265
 
Posts: n/a
Default adding color to cells based on a formula


Have a very simple problem, at least im sure it will be simple for
someone. I would like to add color to cells based on the value that is
in those cells, but the value also must be compared to another cell to
determine if it needs to be shaded. For example, I would like the shade
B2 if it is a positive value, and the value in A2 is negative. However
the values in these cells was already derived by using a formula, and i
dont know how to combine these two formulas. any suggestions?


--
fyrfytr265
------------------------------------------------------------------------
fyrfytr265's Profile: http://www.excelforum.com/member.php...fo&userid=2203
View this thread: http://www.excelforum.com/showthread...hreadid=480769

  #2   Report Post  
Biff
 
Posts: n/a
Default adding color to cells based on a formula

Hi!

Select cell B2

Goto FormatConditional Formatting
Formula is: =AND(ISNUMER(B2),B2=0,A2<0)
Click the Format button
Select the style(s) desired
OK out

Biff

"fyrfytr265" wrote
in message ...

Have a very simple problem, at least im sure it will be simple for
someone. I would like to add color to cells based on the value that is
in those cells, but the value also must be compared to another cell to
determine if it needs to be shaded. For example, I would like the shade
B2 if it is a positive value, and the value in A2 is negative. However
the values in these cells was already derived by using a formula, and i
dont know how to combine these two formulas. any suggestions?


--
fyrfytr265
------------------------------------------------------------------------
fyrfytr265's Profile:
http://www.excelforum.com/member.php...fo&userid=2203
View this thread: http://www.excelforum.com/showthread...hreadid=480769



  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default adding color to cells based on a formula

fyr

Select B2 and FormatConditional FormattingFormula is........

=AND(A2<0,B2=0)

Select a pattern from format and OK your way out.


Gord Dibben Excel MVP

On Mon, 31 Oct 2005 23:25:49 -0600, fyrfytr265
wrote:


Have a very simple problem, at least im sure it will be simple for
someone. I would like to add color to cells based on the value that is
in those cells, but the value also must be compared to another cell to
determine if it needs to be shaded. For example, I would like the shade
B2 if it is a positive value, and the value in A2 is negative. However
the values in these cells was already derived by using a formula, and i
dont know how to combine these two formulas. any suggestions?


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
Formula works in some cells, doesn't in other Wowbagger New Users to Excel 13 June 30th 05 03:21 PM
Adding cells based on condition Ted Metro Excel Worksheet Functions 1 June 22nd 05 09:15 PM
trying to create an (almost) circular formula between cells and data validated cells with lists KR Excel Worksheet Functions 0 May 12th 05 07:21 PM
Applying formula to only NON-EMPTY cells in range Tasi Excel Discussion (Misc queries) 5 March 29th 05 10:48 PM
Adding colour to a range of cells based on one of the cells v... McKenna Excel Discussion (Misc queries) 4 March 11th 05 02:25 PM


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