PC Review


Reply
Thread Tools Rate Thread

calculating based on color

 
 
beata
Guest
Posts: n/a
 
      3rd Aug 2009
Hi. I've read Chip Pearson's site on calculating based on color, but I'm not
savvy enough to copy it. Does the newer version and/or has anyone found a
easier workaround for identifying or calculating color?
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      3rd Aug 2009
Color is part of the format facility of Excel. It can be applied to font,
interior, lines and fill. If it is applied as conditional format it is at a
different level than if it is applied to the interior. It is not easy to
work with and Chip's code is about as simple as you are going to get.


"beata" <(E-Mail Removed)> wrote in message
news:711A6B19-427C-4DDB-890E-(E-Mail Removed)...
> Hi. I've read Chip Pearson's site on calculating based on color, but I'm
> not
> savvy enough to copy it. Does the newer version and/or has anyone found a
> easier workaround for identifying or calculating color?



 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      3rd Aug 2009
Hi,
I have to agree with JLG here.
I've been using Chip's color by sum function for close to two years now, and
I swear by it.

If you're looking for an easier way to apply it, see my code for inserting
it into a cell below.....
This macro is formatted for use in my UIRibbon in Excel 2007.

Sub ColorSum(Control As IRibbonControl)
ActiveCell.FormulaR1C1 = "=sumbycolor(CellRange,ColorNum,TrueIfFontColor)"
With ActiveCell.Characters(Start:=1, Length:=150).Font
End With
End Sub

I then replace CellRange with a range of cells.
I replace ColorNum with the number of the color I'm using, and want summed.
And I either delete, or replace the TrueIfFontColor with the word "true"
depending on if I'm using font color as my format of choice.

I've gotta say--- this colorbysum function of Chip's is a very worthwhile
tool, and I use it regularly.
You'll be hard-pressed to find a better tool.



"beata" wrote:

> Hi. I've read Chip Pearson's site on calculating based on color, but I'm not
> savvy enough to copy it. Does the newer version and/or has anyone found a
> easier workaround for identifying or calculating color?

 
Reply With Quote
 
beata
Guest
Posts: n/a
 
      4th Aug 2009
Thanks. It looked fairly straight forward and I did "download it" (I'm
ignorant but not timid) but I couldn't figure out how to "bring it in" or
"run it" or whatever one does to integrate it...

is it easy enough to explain on email?

"Steve" wrote:

> Hi,
> I have to agree with JLG here.
> I've been using Chip's color by sum function for close to two years now, and
> I swear by it.
>
> If you're looking for an easier way to apply it, see my code for inserting
> it into a cell below.....
> This macro is formatted for use in my UIRibbon in Excel 2007.
>
> Sub ColorSum(Control As IRibbonControl)
> ActiveCell.FormulaR1C1 = "=sumbycolor(CellRange,ColorNum,TrueIfFontColor)"
> With ActiveCell.Characters(Start:=1, Length:=150).Font
> End With
> End Sub
>
> I then replace CellRange with a range of cells.
> I replace ColorNum with the number of the color I'm using, and want summed.
> And I either delete, or replace the TrueIfFontColor with the word "true"
> depending on if I'm using font color as my format of choice.
>
> I've gotta say--- this colorbysum function of Chip's is a very worthwhile
> tool, and I use it regularly.
> You'll be hard-pressed to find a better tool.
>
>
>
> "beata" wrote:
>
> > Hi. I've read Chip Pearson's site on calculating based on color, but I'm not
> > savvy enough to copy it. Does the newer version and/or has anyone found a
> > easier workaround for identifying or calculating color?

 
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
Change tab color based on current color of a cell MarkT Microsoft Excel Misc 0 22nd May 2008 05:46 PM
change fill color of a range of cells based on color of a cell? =?Utf-8?B?RGFyTWVsTmVs?= Microsoft Excel Programming 0 2nd Mar 2006 06:35 PM
calculating a person's age based on a certain day based on date of birth Kathie G via AccessMonster.com Microsoft Access Reports 1 24th Feb 2006 08:16 PM
Browse Forms Controls and change TextBox color based on cell color =?Utf-8?B?U3RlZmFuVw==?= Microsoft Excel Programming 0 21st Nov 2004 04:28 AM
Excel - Calculating total based on different font color of the cell eric Microsoft Excel Worksheet Functions 1 11th Jul 2003 05:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 PM.