Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formattting Text | Excel Worksheet Functions | |||
Conditional Rank (or rather, Conditional Range) | Excel Worksheet Functions | |||
Conditional Formatting that will display conditional data | Excel Worksheet Functions | |||
Conditional Sum by Row | Excel Worksheet Functions | |||
Formattting Fractions | Excel Discussion (Misc queries) |