Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a function which can sum up all the cells in a column where the
contents of the cell are in pink color. Pls help. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
something along these lines to get you started:
Option Explicit Enum eColor Pink = 13408767 End Enum Function ColorSum(Source As Range) As Double Dim total As Double Dim cell As Range For Each cell In Source With cell If .Font.Color = eColor.Pink Then total = total + .Value End If End With Next ColorSum = total End Function Enhancements: 1) see if you can make the color a parameter 2) add a check to ensure that a cell has a legitimate value befor totalling works as is though. "mario" wrote: Is there a function which can sum up all the cells in a column where the contents of the cell are in pink color. Pls help. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See http://www.xldynamic.com/source/xld.ColourCounter.html
-- HTH RP (remove nothere from the email address if mailing direct) "mario" wrote in message ... Is there a function which can sum up all the cells in a column where the contents of the cell are in pink color. Pls help. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
More Functions based on Font Color | New Users to Excel | |||
Changing Font color based on font type or size | Excel Discussion (Misc queries) | |||
change font color based on a value | Excel Worksheet Functions | |||
How do you change font color based on the value input? 1 = |
Excel Discussion (Misc queries) | |||
Sum a row of data based on FONT COLOR ( | Excel Programming |