ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNTIF based on Format... (https://www.excelbanter.com/excel-discussion-misc-queries/135097-countif-based-format.html)

Steve

COUNTIF based on Format...
 
What is the formula for counting how many BOLD cells are located in a row or
worksheet?

Thank you in advance.

Gary''s Student

COUNTIF based on Format...
 
see:

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


--
Gary''s Student
gsnu200710


"Steve" wrote:

What is the formula for counting how many BOLD cells are located in a row or
worksheet?

Thank you in advance.


Gord Dibben

COUNTIF based on Format...
 
Or a 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(range)


Gord Dibben MS Excel MVP


On Thu, 15 Mar 2007 17:51:11 -0700, Gary''s Student
wrote:

see:

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




All times are GMT +1. The time now is 02:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com