Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bob T
 
Posts: n/a
Default How to make the cell or font color red if the number is negative?

I'd like to make a cell change color or the cell's font change color as the
number in the cell changes from negative to positive or vice versa?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Use conditional formatting with a condition of less than 0.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob T" <Bob wrote in message
...
I'd like to make a cell change color or the cell's font change color as

the
number in the cell changes from negative to positive or vice versa?



  #3   Report Post  
Max
 
Posts: n/a
Default

Try Conditional Formatting

Suppose you want this to happen in say, col E
Select col E
Click Format Conditional Formatting
Make the settings as:

For Condition 1:
Formula Is| =AND(E1<"",ISNUMBER(E1),E1=0)
Click Format button Patterns tab Light green? OK

Click Add

For Condition 2:
Formula Is| =AND(E1<"",ISNUMBER(E1),E1<0)
Click Format button Patterns tab Pink? OK

Click OK at the main dialog

Now test it out by inputting some negative, positive values, zeroes and some
text (e.g.: "ABC") in col E ..

The cells' fill color should appear accordingly for the numbers, any cell
with text entered or empty cells should not trigger the C.F. (i.e. no
formatting should occur)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
Bob T <Bob wrote in message
...
I'd like to make a cell change color or the cell's font change color as

the
number in the cell changes from negative to positive or vice versa?



  #4   Report Post  
Bob T
 
Posts: n/a
Default

Thanks Bob! That's exactly what I was looking for

"Bob Phillips" wrote:

Use conditional formatting with a condition of less than 0.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob T" <Bob wrote in message
...
I'd like to make a cell change color or the cell's font change color as

the
number in the cell changes from negative to positive or vice versa?




  #5   Report Post  
Bob T
 
Posts: n/a
Default

Thanks Max! Your answer was very helpful, exactly what I wanted.

"Max" wrote:

Try Conditional Formatting

Suppose you want this to happen in say, col E
Select col E
Click Format Conditional Formatting
Make the settings as:

For Condition 1:
Formula Is| =AND(E1<"",ISNUMBER(E1),E1=0)
Click Format button Patterns tab Light green? OK

Click Add

For Condition 2:
Formula Is| =AND(E1<"",ISNUMBER(E1),E1<0)
Click Format button Patterns tab Pink? OK

Click OK at the main dialog

Now test it out by inputting some negative, positive values, zeroes and some
text (e.g.: "ABC") in col E ..

The cells' fill color should appear accordingly for the numbers, any cell
with text entered or empty cells should not trigger the C.F. (i.e. no
formatting should occur)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
Bob T <Bob wrote in message
...
I'd like to make a cell change color or the cell's font change color as

the
number in the cell changes from negative to positive or vice versa?






  #6   Report Post  
Max
 
Posts: n/a
Default

You're welcome, Bob !
Thanks for the feedback
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Bob T" <Bob wrote
Thanks Max! Your answer was very helpful, exactly what I wanted.



  #7   Report Post  
RODY
 
Posts: n/a
Default

HI BOB TRY USING CONDITIONAL FORMATING GO TO TOOLS MENU / CONDITIONAL
FORMATING / CELL VALUE IS / NOT EQUAL TO / TYPE 0 / CLICK FORMAT / CLICK THE
BUTTON WOULD YOU LIKE TO DO

"Bob T" wrote:

I'd like to make a cell change color or the cell's font change color as the
number in the cell changes from negative to positive or vice versa?

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
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Defining a number in a cell by text then subtracting it by the tex Crowraine Excel Worksheet Functions 1 December 16th 04 07:49 AM
Formatting a cell as "text" in the number catagory. Ed Excel Worksheet Functions 3 December 7th 04 07:12 PM
how to change the state of a number in a cell from negative to po. Steve11 Excel Discussion (Misc queries) 1 November 29th 04 07:00 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:34 AM.

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"