Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Conditional formattting & CountColorCells

Good morning all,

With your help...

I have a workbook that ustilises COUNTCOLORCELLS() to generate the area and
perimeter of a plotted area.

I have another workbook that plots an area using CONDITIONAL FORMATTING
based on the outputs of length and width formulas.

I now wish to combime the two so that the area and perimeter of the
generated plotted shape are calculated. Herein lies the problem...

COUNTCOLORCELLS() will not count cells that are coloured through conditonal
formatting and therefore returns zero at all times.

Is there a way to count cells coloured that are generated from conditional
formatting? Alternatively can I use a method other than conditonal
formatting to plot varying areas- perhaps something along the lines of using
cell referencing... PLOT (A1) to (A+X,1+Y) where X & Y are generated lengths
and widths in two other cells?

You help, as ever, is much appreciated. Thank-you.


Cheers,

Neil


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Conditional formattting & CountColorCells

Came across something like this before over at mrexcel.com.
In Excel 2003 and earlier this could be accomplished with a lot of VBA.
In 2007, you can countif by color, so you should be able to whip up a
formula or two.

"Neil Pearce" wrote:

Good morning all,

With your help...

I have a workbook that ustilises COUNTCOLORCELLS() to generate the area and
perimeter of a plotted area.

I have another workbook that plots an area using CONDITIONAL FORMATTING
based on the outputs of length and width formulas.

I now wish to combime the two so that the area and perimeter of the
generated plotted shape are calculated. Herein lies the problem...

COUNTCOLORCELLS() will not count cells that are coloured through conditonal
formatting and therefore returns zero at all times.

Is there a way to count cells coloured that are generated from conditional
formatting? Alternatively can I use a method other than conditonal
formatting to plot varying areas- perhaps something along the lines of using
cell referencing... PLOT (A1) to (A+X,1+Y) where X & Y are generated lengths
and widths in two other cells?

You help, as ever, is much appreciated. Thank-you.


Cheers,

Neil


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Conditional formattting & CountColorCells

Unfortunately, my computer and laptop both run 2003. As does my work place
and university. So I am still at a loss and the problem still stands.

Out of interest does the 2007 COUNTIF BYCOLOR count conditionally formatted
cells?

"Excel Ranger" wrote:

Came across something like this before over at mrexcel.com.
In Excel 2003 and earlier this could be accomplished with a lot of VBA.
In 2007, you can countif by color, so you should be able to whip up a
formula or two.

"Neil Pearce" wrote:

Good morning all,

With your help...

I have a workbook that ustilises COUNTCOLORCELLS() to generate the area and
perimeter of a plotted area.

I have another workbook that plots an area using CONDITIONAL FORMATTING
based on the outputs of length and width formulas.

I now wish to combime the two so that the area and perimeter of the
generated plotted shape are calculated. Herein lies the problem...

COUNTCOLORCELLS() will not count cells that are coloured through conditonal
formatting and therefore returns zero at all times.

Is there a way to count cells coloured that are generated from conditional
formatting? Alternatively can I use a method other than conditonal
formatting to plot varying areas- perhaps something along the lines of using
cell referencing... PLOT (A1) to (A+X,1+Y) where X & Y are generated lengths
and widths in two other cells?

You help, as ever, is much appreciated. Thank-you.


Cheers,

Neil


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conditional formattting & CountColorCells

It is not simple but it can be done. See
http://www.xldynamic.com/source/xld.CFConditions.html

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neil Pearce" wrote in message
...
Good morning all,

With your help...

I have a workbook that ustilises COUNTCOLORCELLS() to generate the area
and
perimeter of a plotted area.

I have another workbook that plots an area using CONDITIONAL FORMATTING
based on the outputs of length and width formulas.

I now wish to combime the two so that the area and perimeter of the
generated plotted shape are calculated. Herein lies the problem...

COUNTCOLORCELLS() will not count cells that are coloured through
conditonal
formatting and therefore returns zero at all times.

Is there a way to count cells coloured that are generated from conditional
formatting? Alternatively can I use a method other than conditonal
formatting to plot varying areas- perhaps something along the lines of
using
cell referencing... PLOT (A1) to (A+X,1+Y) where X & Y are generated
lengths
and widths in two other cells?

You help, as ever, is much appreciated. Thank-you.


Cheers,

Neil




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Conditional formattting & CountColorCells

Thanks Bob,

Is it a simple job of copying the Conditional Formatting Color Count
function as found in the grey box and pasting as a new function under Visual
Basic - Insert - Module, then use CFCOLORCOUNT(...) within the workbook?

Cheers,

Neil

"Bob Phillips" wrote:

It is not simple but it can be done. See
http://www.xldynamic.com/source/xld.CFConditions.html

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neil Pearce" wrote in message
...
Good morning all,

With your help...

I have a workbook that ustilises COUNTCOLORCELLS() to generate the area
and
perimeter of a plotted area.

I have another workbook that plots an area using CONDITIONAL FORMATTING
based on the outputs of length and width formulas.

I now wish to combime the two so that the area and perimeter of the
generated plotted shape are calculated. Herein lies the problem...

COUNTCOLORCELLS() will not count cells that are coloured through
conditonal
formatting and therefore returns zero at all times.

Is there a way to count cells coloured that are generated from conditional
formatting? Alternatively can I use a method other than conditonal
formatting to plot varying areas- perhaps something along the lines of
using
cell referencing... PLOT (A1) to (A+X,1+Y) where X & Y are generated
lengths
and widths in two other cells?

You help, as ever, is much appreciated. Thank-you.


Cheers,

Neil







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conditional formattting & CountColorCells

Nothing is simple. CFColourCount is just a wrapper function as it states, to
give access to a counter, you also need the CFColorindex function.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neil Pearce" wrote in message
...
Thanks Bob,

Is it a simple job of copying the Conditional Formatting Color Count
function as found in the grey box and pasting as a new function under
Visual
Basic - Insert - Module, then use CFCOLORCOUNT(...) within the workbook?

Cheers,

Neil

"Bob Phillips" wrote:

It is not simple but it can be done. See
http://www.xldynamic.com/source/xld.CFConditions.html

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Neil Pearce" wrote in message
...
Good morning all,

With your help...

I have a workbook that ustilises COUNTCOLORCELLS() to generate the area
and
perimeter of a plotted area.

I have another workbook that plots an area using CONDITIONAL FORMATTING
based on the outputs of length and width formulas.

I now wish to combime the two so that the area and perimeter of the
generated plotted shape are calculated. Herein lies the problem...

COUNTCOLORCELLS() will not count cells that are coloured through
conditonal
formatting and therefore returns zero at all times.

Is there a way to count cells coloured that are generated from
conditional
formatting? Alternatively can I use a method other than conditonal
formatting to plot varying areas- perhaps something along the lines of
using
cell referencing... PLOT (A1) to (A+X,1+Y) where X & Y are generated
lengths
and widths in two other cells?

You help, as ever, is much appreciated. Thank-you.


Cheers,

Neil







  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Conditional formattting & CountColorCells

Hi Bob. I believe the reason why it wouldn't work is because there is an
additional closed bracket that isn't required in the code:

"CLng(CFColorindex(cell, text) ) = ciValue)"


Thank-you for your help. My building model is now working rather well indeed,

Cheers!

Neil

"Bob Phillips" wrote:

Nothing is simple. CFColourCount is just a wrapper function as it states, to
give access to a counter, you also need the CFColorindex function.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neil Pearce" wrote in message
...
Thanks Bob,

Is it a simple job of copying the Conditional Formatting Color Count
function as found in the grey box and pasting as a new function under
Visual
Basic - Insert - Module, then use CFCOLORCOUNT(...) within the workbook?

Cheers,

Neil

"Bob Phillips" wrote:

It is not simple but it can be done. See
http://www.xldynamic.com/source/xld.CFConditions.html

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Neil Pearce" wrote in message
...
Good morning all,

With your help...

I have a workbook that ustilises COUNTCOLORCELLS() to generate the area
and
perimeter of a plotted area.

I have another workbook that plots an area using CONDITIONAL FORMATTING
based on the outputs of length and width formulas.

I now wish to combime the two so that the area and perimeter of the
generated plotted shape are calculated. Herein lies the problem...

COUNTCOLORCELLS() will not count cells that are coloured through
conditonal
formatting and therefore returns zero at all times.

Is there a way to count cells coloured that are generated from
conditional
formatting? Alternatively can I use a method other than conditonal
formatting to plot varying areas- perhaps something along the lines of
using
cell referencing... PLOT (A1) to (A+X,1+Y) where X & Y are generated
lengths
and widths in two other cells?

You help, as ever, is much appreciated. Thank-you.


Cheers,

Neil








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
Formattting Text Donovan[_2_] Excel Worksheet Functions 1 June 6th 07 03:41 PM
Conditional Rank (or rather, Conditional Range) [email protected] Excel Worksheet Functions 6 April 16th 07 06:15 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
Conditional Sum by Row AAMIFC Excel Worksheet Functions 4 July 14th 05 04:58 AM
Formattting Fractions MarthaSue Excel Discussion (Misc queries) 3 May 2nd 05 06:54 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"