Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default dynamic color changing within cells

How can I get the numbers in a cell to change color
depending on whether or not they are positive or negative
as in a stock price change?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default dynamic color changing within cells

This can be done easily by use of "Conditional formatting"

Click in the cell you want to change color. Click on Format. Click on
Conditional formatting.

Excel allows use three "conditions" that you can specify a change in
cell format -- color, font, and border.

Use the drop downs. In your case it will be easy. Just sellect "cell
greater than" and enter "0" as one condition -- then specify your
format change. Click Add

sellect "cell less than" as your second condition and specify the
format. Click ok

Now double-click on the "Format Painter" button (looks like a yellow
paintbrush) and then highlight all other cells that you want formatted
that way.

*** If you use a formula to change the color in a cell, e.g. using
nested If functions, Excel by Default will enter "$" to make the
conditional format unique to that cell. Remove these before using the
format painter to apply the same format to other cells.

Cheers.


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default dynamic color changing within cells

Tom,

In the spreadsheet use the conditional formatting command for the range
involved.

Set the condition to cell value greater than 0 and Format Font Color Blue
Set another condition to cell value less to 0 Format Font Color Red

If you have set the cell to default Black then a 0 will remain black

If you need to do this in VBA let me know

Cheers
N


"Tom Donino" wrote in message
...
How can I get the numbers in a cell to change color
depending on whether or not they are positive or negative
as in a stock price change?





----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
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
Changing the color of cells by formula Emerogork Excel Worksheet Functions 1 August 24th 07 12:32 AM
Changing several cells text color lauras03 Excel Discussion (Misc queries) 1 March 12th 07 11:03 PM
color changing of cells changetires Excel Discussion (Misc queries) 7 June 15th 06 07:43 PM
Changing color on a range of cells Pete Excel Programming 3 December 31st 03 10:03 PM
Changing color of cells Carl Brehm Excel Programming 5 October 31st 03 12:27 PM


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