#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Countif color

is there a way to get countif to count based on the color of text? how about
if text is bold?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Countif color

See http://xldynamic.com/source/xld.ColourCounter.html

--
---
HTH

Bob

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



"reddog_3d" wrote in message
...
is there a way to get countif to count based on the color of text? how
about
if text is bold?

thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Countif color

To count cells with bold text use this UDF

Function CountBold(rg As Range) As Long
''originally posted by Ron Rosenfeld
Dim C As Range
For Each C In rg
CountBold = CountBold - C.Font.Bold
Next C
End Function

Usage is: =CountBold(A1:F23) or whatever range you choose.

Little more complex for colors.

See Chip Pearson's site for info and code.

http://www.cpearson.com/excel/colors.htm

One more method you may want to explore.

Select a range of cells and EditFindOptionsFormatFormatPattern. Select a
color and "Find All"

In the list box select top cell found then hold SHIFT key and select last cell
found.

You will get a count = xx on the Status bar if that option is set to "count"


Gord Dibben MS Excel MVP


On Fri, 16 Feb 2007 10:45:02 -0800, reddog_3d
wrote:

is there a way to get countif to count based on the color of text? how about
if text is bold?

thanks


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
Countif - change color of cells that meet criteria [email protected] Excel Discussion (Misc queries) 3 November 24th 06 11:53 PM
countif based on fill color edmcf@mot Excel Worksheet Functions 1 January 13th 06 02:22 AM
Can criteria in countif statement be a color? aosbor Excel Worksheet Functions 1 November 23rd 05 09:17 PM
Countif cell color is Red? JohnG Excel Worksheet Functions 6 February 11th 05 03:24 PM
Is there a way to test color formatting in countIF functions? Geni Excel Worksheet Functions 3 January 27th 05 03:31 PM


All times are GMT +1. The time now is 10:01 PM.

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

About Us

"It's about Microsoft Excel"