Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default Color a calculated percentage cell text red if results negative

I have a spread sheet containing columns Budget, Expense, Variance and %
Variance in cols A, B, C and D. Col D contains formulas of the form =C10/A10.

What code would I add to color negative percentage cell text red?

Thx for your help, John
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Color a calculated percentage cell text red if results negative

Highlight appropriate cells; Format-conditional formatting-"Cell Value Is"
"less than" "0", then hit the format button and format appropriately.

"John" wrote:

I have a spread sheet containing columns Budget, Expense, Variance and %
Variance in cols A, B, C and D. Col D contains formulas of the form =C10/A10.

What code would I add to color negative percentage cell text red?

Thx for your help, John

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default Color a calculated percentage cell text red if results negative

I have a spread sheet containing columns Budget, Expense, Variance and
% Variance in cols A, B, C and D. Col D contains formulas of the form
=C10/A10.

What code would I add to color negative percentage cell text red?


One way:
Format Cells Number Custom

and under "Type" put
0.00%;[Red]0.00%

Vary to suit.

(I have Excel 2003.)
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default Color a calculated percentage cell text red if results negative

I have a spread sheet containing columns Budget, Expense, Variance and
% Variance in cols A, B, C and D. Col D contains formulas of the form
=C10/A10.

What code would I add to color negative percentage cell text red?


One way:
Format Cells Number Custom

and under "Type" put
0.00%;[Red]0.00%


Or even better:
0.00%;[Red]-0.00%
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 Font color automatically when Cell Format is Percentage Teljon Excel Worksheet Functions 1 May 18th 08 06:39 AM
Positive or negative sign in a calculated cell Michel Khennafi Excel Worksheet Functions 5 June 19th 07 07:28 PM
Color of @IF Results Cell dog25 Excel Worksheet Functions 2 June 5th 07 05:59 PM
Change cell color when a percentage is reached Ron C Excel Discussion (Misc queries) 1 October 24th 06 09:33 PM
How do I change formula results by changing the text color of the bailfire13 Excel Discussion (Misc queries) 4 May 31st 06 04:41 PM


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