PC Review


Reply
Thread Tools Rate Thread

Counting specific words in Word 2007

 
 
TxBikeRider
Guest
Posts: n/a
 
      15th Jan 2008
I need to be able to go through a document (either 2003 or 2007) in Word 2007
and count all the occurrences of a specific word. There doesn't seem to be a
"canned" way of doing that in the actual application.

Any suggestions?

Jim
 
Reply With Quote
 
 
 
 
Jay Freedman
Guest
Posts: n/a
 
      15th Jan 2008
Open the Replace dialog (Ctrl+H). Enter the specific word in the Find What
box, and enter the code ^& in the Replace With box (the code means "the
same thing that was just found"). Click the Replace All button. Word will
display a message box telling you how many replacements it did. Since you
replaced the word with itself, there won't be any change in the document.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

TxBikeRider wrote:
> I need to be able to go through a document (either 2003 or 2007) in
> Word 2007 and count all the occurrences of a specific word. There
> doesn't seem to be a "canned" way of doing that in the actual
> application.
>
> Any suggestions?
>
> Jim



 
Reply With Quote
 
Graham Mayor
Guest
Posts: n/a
 
      15th Jan 2008
Use the replace function (CTRL+H)
Enter the word to count in the find what box and ^& in the replace with box.
Replace all. The function will give you the number of times the word was
replaced ie the number of occurrences of that word.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

TxBikeRider wrote:
> I need to be able to go through a document (either 2003 or 2007) in
> Word 2007 and count all the occurrences of a specific word. There
> doesn't seem to be a "canned" way of doing that in the actual
> application.
>
> Any suggestions?
>
> Jim



 
Reply With Quote
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      15th Jan 2008
While replacing a word with itself (as Jay and Graham suggest) will
certainly give you the desired results, Word 2003 and 2007 also offer
another method. Use Ctrl+F to open the Find dialog. Type the word in the
"Find what" box, check the box for "Highlight all items found," and click
Find All. Word will tell you how many it found. Better still, they'll all be
selected, in case you want to, say, apply specific formatting to them.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"TxBikeRider" <(E-Mail Removed)> wrote in message
news:78C291D3-79BE-4683-9201-(E-Mail Removed)...
>I need to be able to go through a document (either 2003 or 2007) in Word
>2007
> and count all the occurrences of a specific word. There doesn't seem to
> be a
> "canned" way of doing that in the actual application.
>
> Any suggestions?
>
> Jim
>



 
Reply With Quote
 
Ember
Guest
Posts: n/a
 
      17th Dec 2008
I have seen this suggestion multiple times in this forum. But I would like
to take it a step further.

I have a word 2007 document with information contained in a table. The
table has five columns with one of them being "Assigned To". I would like to
know if there is a way, or formula, that would count the number of times a
person's name appeared in this column.

The change here is that this count could/would change as a person signed up
for more items on the table. Is this possible?

Thanks!

"Suzanne S. Barnhill" wrote:

> While replacing a word with itself (as Jay and Graham suggest) will
> certainly give you the desired results, Word 2003 and 2007 also offer
> another method. Use Ctrl+F to open the Find dialog. Type the word in the
> "Find what" box, check the box for "Highlight all items found," and click
> Find All. Word will tell you how many it found. Better still, they'll all be
> selected, in case you want to, say, apply specific formatting to them.
>
> --
> Suzanne S. Barnhill
> Microsoft MVP (Word)
> Words into Type
> Fairhope, Alabama USA
>
> "TxBikeRider" <(E-Mail Removed)> wrote in message
> news:78C291D3-79BE-4683-9201-(E-Mail Removed)...
> >I need to be able to go through a document (either 2003 or 2007) in Word
> >2007
> > and count all the occurrences of a specific word. There doesn't seem to
> > be a
> > "canned" way of doing that in the actual application.
> >
> > Any suggestions?
> >
> > Jim
> >

>
>
>

 
Reply With Quote
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      17th Dec 2008
With the selection in one of the cells that contains the name for which you
want the count, run a macro containing the following code:

Dim Name As Range
Dim i As Long, j As Long, colnum As Long
colnum = Selection.Information(wdEndOfRangeColumnNumber)
j = 0
Set Name = Selection.Cells(1).Range
With Selection.Tables(1)
For i = 1 To .Rows.Count
If .Cell(i, colnum).Range.Text = Name.Text Then
j = j + 1
End If
Next i
End With
Name.End = Name.End - 1
MsgBox j & " activities have been assigned to " & Name.Text & "."


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Ember" <(E-Mail Removed)> wrote in message
news:00D7CCA2-EB28-49C4-93B1-(E-Mail Removed)...
>I have seen this suggestion multiple times in this forum. But I would like
> to take it a step further.
>
> I have a word 2007 document with information contained in a table. The
> table has five columns with one of them being "Assigned To". I would like
> to
> know if there is a way, or formula, that would count the number of times a
> person's name appeared in this column.
>
> The change here is that this count could/would change as a person signed
> up
> for more items on the table. Is this possible?
>
> Thanks!
>
> "Suzanne S. Barnhill" wrote:
>
>> While replacing a word with itself (as Jay and Graham suggest) will
>> certainly give you the desired results, Word 2003 and 2007 also offer
>> another method. Use Ctrl+F to open the Find dialog. Type the word in the
>> "Find what" box, check the box for "Highlight all items found," and click
>> Find All. Word will tell you how many it found. Better still, they'll all
>> be
>> selected, in case you want to, say, apply specific formatting to them.
>>
>> --
>> Suzanne S. Barnhill
>> Microsoft MVP (Word)
>> Words into Type
>> Fairhope, Alabama USA
>>
>> "TxBikeRider" <(E-Mail Removed)> wrote in message
>> news:78C291D3-79BE-4683-9201-(E-Mail Removed)...
>> >I need to be able to go through a document (either 2003 or 2007) in Word
>> >2007
>> > and count all the occurrences of a specific word. There doesn't seem
>> > to
>> > be a
>> > "canned" way of doing that in the actual application.
>> >
>> > Any suggestions?
>> >
>> > Jim
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting specific words in a document =?Utf-8?B?THVpZ2k=?= Microsoft Word Document Management 1 16th Sep 2007 05:14 AM
counting occurrence of specific words in another group of words kh@horsemanship101.com Microsoft Excel Programming 0 5th Aug 2006 03:43 AM
counting specific words =?Utf-8?B?amVu?= Microsoft Excel Worksheet Functions 2 25th Jun 2005 12:46 AM
Counting instances of specific words in a document =?Utf-8?B?TWljaGFlbCBa?= Microsoft Word Document Management 3 20th Feb 2005 06:35 PM
counting specific words =?Utf-8?B?amlt?= Microsoft Excel Worksheet Functions 6 3rd Mar 2004 02:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:16 PM.