Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Count cells according to format

if i have a row of data, some in a normal font and others in BOLD, is it
possible to count how many cells use the BOLD format in the range?
--
scheduler
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default Count cells according to format

By formula or by VBA?

I'm sure, that it works with VBA, but I don't know if it is possible
with a Formula.

Carlo

On Nov 20, 1:23 pm, scheduler
wrote:
if i have a row of data, some in a normal font and others in BOLD, is it
possible to count how many cells use the BOLD format in the range?
--
scheduler


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Count cells according to format

You could employ a user defined function.

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

=CountBold(A1:M1)

If you have Excel 2003(don't know about 2007)

You could try this alternate method which doesn't use VBA or any add-ins.

In 2003 you can specify the Format color to look for under
EditFindOptionsFormatFormat.

Select the Bold Font Type from the Font dialog and Find All.

In the found dialog box the first cell will be highlighted. Then SHIFT + End +
DownArrow to select all..

The selected cells can then be counted by right-click on Status Bar and "Count".


Gord Dibben MS Excel MVP

On Mon, 19 Nov 2007 20:23:01 -0800, scheduler
wrote:

if i have a row of data, some in a normal font and others in BOLD, is it
possible to count how many cells use the BOLD format in the range?


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
Count of Cells Based on Format Dawg House Inc Excel Discussion (Misc queries) 1 August 15th 07 11:36 PM
Count cells by format GeneR Excel Worksheet Functions 2 December 28th 06 02:01 AM
Can one count cells having a certain format? i.e. using countif? KristinG Excel Worksheet Functions 1 August 8th 06 07:00 PM
Count and Sum cells with certain format (e.g. color) [email protected] Excel Worksheet Functions 2 November 8th 05 02:12 AM
Can I count cells with specific format (e.g., yellow field?) umaanddottie Excel Worksheet Functions 2 May 31st 05 12:02 AM


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

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

About Us

"It's about Microsoft Excel"