PC Review


Reply
Thread Tools Rate Thread

Re: Correct Syntax for Changing Color of Cell Based on Value

 
 
Dave Peterson
Guest
Posts: n/a
 
      6th Dec 2008
Maybe something like:
[Blue][>0.5]0.00%;[Red][>0.25]0.00%;0.00%

(notice that the numbers are now decimals--not whole numbers.)


W wrote:
>
> I have a column with percentages in it, and I want to have the color of each
> cell change based on values. If the percentage is greater than 50 then I
> want Blue. If the percentage is 25 to 50 I want red. If the Percentage
> is less than 25 I want black. I guessed at the following syntax for a
> Custom number type, but Excel is rejecting this:
>
> [Blue][>50]Percentage;[Red][>25]Percentage; Percentage
>
> What would be the correct syntax?
>
> A further refinement on this is that I don't want more than one tenth of one
> percent precision, so the template would be 00.0%.
>
> --
> W


--

Dave Peterson
 
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 the color of a cell based on the color of another cell. LATC Microsoft Excel Misc 6 4th Dec 2009 10:49 PM
Re: Correct Syntax for Changing Color of Cell Based on Value T. Valko Microsoft Excel Misc 0 6th Dec 2008 11:39 PM
Re: Correct Syntax for Changing Color of Cell Based on Value Dave Peterson Microsoft Excel Misc 0 6th Dec 2008 11:24 PM
Changing cell color based on cell value =?Utf-8?B?TXIuIERhbg==?= Microsoft Excel Programming 2 25th Aug 2006 07:01 PM
changing value of a cell based on another cell color Gary Microsoft Excel Misc 2 30th Jan 2005 11:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:58 PM.