PC Review


Reply
Thread Tools Rate Thread

Changing font color based on positive or negative number

 
 
Joe
Guest
Posts: n/a
 
      30th Dec 2007
Hello everyone,

I'm attempting to make a budget in Excel and would like to format a cell to
turn bold and red when the sum equals a negative number and for the cell to
turn bold and black when the sum equals a positive number. I believe there
is a way to do it but I'm not sure how to go about doing so. Any help you
can provide would be great. Thanks!
 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      30th Dec 2007
Hi Joe

Use conditional formatting. Find it in the format menu.

Happy New Year!
Per

On 30 Dec., 05:24, Joe <J...@discussions.microsoft.com> wrote:
> Hello everyone,
>
> I'm attempting to make a budget in Excel and would like to format a cell to
> turn bold and red when the sum equals a negative number and for the cell to
> turn bold and black when the sum equals a positive number. *I believe there
> is a way to do it but I'm not sure how to go about doing so. *Any help you
> can provide would be great. *Thanks!


 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      30th Dec 2007
You can use NumberFormat. The -ve format is between the 1st & {optional) 2nd
semi-colons. Look at the examples in Custom, or simply
"General;[Red]-General" without the quotes.

Programatically,

dim rng as Range
dim sNumFmt as string

sNumFmt = "#,##0.00;[Red]-#,##0.00;[Blue]""zero"""
set rng = Selection
rng.NumberFormat = sNumFmt

Regards,
Peter T

"Joe" <(E-Mail Removed)> wrote in message
news:248CED7E-FF1F-418E-9EE0-(E-Mail Removed)...
> Hello everyone,
>
> I'm attempting to make a budget in Excel and would like to format a cell

to
> turn bold and red when the sum equals a negative number and for the cell

to
> turn bold and black when the sum equals a positive number. I believe

there
> is a way to do it but I'm not sure how to go about doing so. Any help you
> can provide would be great. Thanks!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing a cell color to reflect positive or negative total =?Utf-8?B?QWxleCBWZWdh?= Microsoft Excel New Users 4 27th May 2007 03:25 PM
Changing negative number to a positive number =?Utf-8?B?QW5pdGE=?= Microsoft Access Reports 16 21st Mar 2007 09:18 PM
Changing negative number to a positive number =?Utf-8?B?QW5pdGE=?= Microsoft Access Forms 16 21st Mar 2007 09:18 PM
Find duplicates based on a negative and positive number =?Utf-8?B?Q3liZXJ3b2xm?= Microsoft Access Queries 3 21st Jun 2005 04:13 PM
Changing Negative number to positive Cheryl Microsoft Access External Data 1 2nd Oct 2003 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 PM.