LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Harlan Grove
 
Posts: n/a
Default

Jig Bhakta wrote...
I want to have a formula in a cell that counts the number of time a

certain
word appears in any cell in a worksheet. i've tried using count but

it only
counts for numbers, not text.


If you want to count cells containing a particular substring, so if
your substring were "XYZ" and cell X99 contained "123XYZ456XYZ789" cell
XYZ would count as one match, use COUNTIF, e.g.,

=COUNTIF(Range,"*"&<YourSubstringHere&"*")

If you want to count every instance including multiple instances in the
same cell as separate matches, use

=SUMPRODUCT((LEN(Range)-LEN(SUBSTITUTE(Range,<YourSubstringHere,""))
/LEN(<YourSubstringHere))

 
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
how do i link a number of worksheets to one master worksheet? Rusty Excel Worksheet Functions 0 January 24th 05 08:49 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
Inserting worksheet in Word Connie Martin Excel Discussion (Misc queries) 0 January 11th 05 06:19 PM
Whats the function to count the total times a word is displayed Monk Excel Discussion (Misc queries) 3 December 10th 04 10:39 PM
Can the number of times undo is used in Excel 2002 be increased? Austrian Hannes Setting up and Configuration of Excel 2 December 6th 04 05:54 PM


All times are GMT +1. The time now is 04:14 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"