Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
it´s possible, in excel 2003, using a function, counting the number of cells in a colum that have text in black and text in red charaters. ex: colum "payment"; (B5:B56); and counting employees in black text, and employee in red text??? thanks. alberto |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Visit www.cpearson.com where Chip has stuff on counting by colour.
best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "alberto" wrote in message ... Hi, it´s possible, in excel 2003, using a function, counting the number of cells in a colum that have text in black and text in red charaters. ex: colum "payment"; (B5:B56); and counting employees in black text, and employee in red text??? thanks. alberto |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Yes it is possible but it doesn't automatically get updated. Changing colors
to not produce an event that will update a worksheet. You can use the functtion below. call with =countcolors(Range, color) red = 3 and black = 1, but you can use any color. Function CountColors(ByVal Target As Range, Color As Integer) CountColors = 0 For Each cell In Target If cell.Interior.ColorIndex = Color Then CountColors = CountColors + 1 End If Next cell End Function "alberto" wrote: Hi, it´s possible, in excel 2003, using a function, counting the number of cells in a colum that have text in black and text in red charaters. ex: colum "payment"; (B5:B56); and counting employees in black text, and employee in red text??? thanks. alberto |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you.
I really resolve the problem reading that link. Alberto. "Bernard Liengme" wrote: Visit www.cpearson.com where Chip has stuff on counting by colour. best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "alberto" wrote in message ... Hi, it´s possible, in excel 2003, using a function, counting the number of cells in a colum that have text in black and text in red charaters. ex: colum "payment"; (B5:B56); and counting employees in black text, and employee in red text??? thanks. alberto |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you very much.
I already resolved the problem. Alberto "Joel" wrote: Yes it is possible but it doesn't automatically get updated. Changing colors to not produce an event that will update a worksheet. You can use the functtion below. call with =countcolors(Range, color) red = 3 and black = 1, but you can use any color. Function CountColors(ByVal Target As Range, Color As Integer) CountColors = 0 For Each cell In Target If cell.Interior.ColorIndex = Color Then CountColors = CountColors + 1 End If Next cell End Function "alberto" wrote: Hi, it´s possible, in excel 2003, using a function, counting the number of cells in a colum that have text in black and text in red charaters. ex: colum "payment"; (B5:B56); and counting employees in black text, and employee in red text??? thanks. alberto |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
counting cells that are 0 in a range of non-contiguous cells | Excel Worksheet Functions | |||
Query counting cells in a row that exactly match cells in another | Excel Discussion (Misc queries) | |||
Complicated counting of cells (based on other cells contents) | Excel Worksheet Functions | |||
Counting empty cells within a range of cells | New Users to Excel | |||
Counting empty cells within a range of cells | New Users to Excel |