LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Count Specific word in Specific range

Hi

Use

=COUNTIF(A1:D6,"*industrial*")+COUNTIF(A11:E17,"*i ndustrial*")

to count the colored cells here is one example

Dim c As Range
numred = 0
numblue = 0
numgreen = 0
For Each c In Range("a1:b5", "d1:d5")
Select Case c.Interior.ColorIndex
Case 3
numred = numred + 1
Range("e1") = numred
Case 5
numblue = numblue + 1
Range("e2") = numblue
Case 10
numgreen = numgreen + 1
Range("e3") = numgreen
End Select
Next c

you might need to change the colorindex to the shade of the color you
use

Cheers Christian

 
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
Calcuting sum of specific word "P" within specific cell range (A5: billy liddel Excel Worksheet Functions 3 September 26th 09 12:17 PM
Count Specific word in specific range [email protected] Excel Worksheet Functions 2 May 16th 06 10:30 AM
Count If Specific word in specific range [email protected] Excel Discussion (Misc queries) 2 May 16th 06 10:14 AM
How do I count a named range for a specific word or acronym? brandyb Excel Worksheet Functions 1 November 4th 05 07:50 PM
SPECIFIC WORD COUNT FROM A RANGE Nigel Excel Discussion (Misc queries) 6 April 28th 05 01:52 PM


All times are GMT +1. The time now is 04:53 AM.

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"