Formula

N

Neil

Hi, I have a word document with a variety of tables in it. I am trying to
count the number of times a string of letters appear. In excel I would simply
select the field and use the countif, but can't do this in word! Can anyone
help please?
 
H

Herb Tyson [MVP]

If you find/replace text with itself Word will report the number of hits.
For example, suppose I'm looking for the number of times that "ABcd" (case
specific) occurs in a file. I can do Find/Replace:

Find: ABcd

Replace with: ABcd

Match case enabled

Replace All

Word will tell you how many it replaced, effectively not changing anything.

If case isn't important, then use ^& as the Replace with: string. ^& is the
special match string for "whatever matched the search". Hence, in this case,
if Word found AbCd or ABCD it would replace it with AbCd or ABCD,
respectively.
 
N

Neil

thanks for that. I didn't quite explain what I wanted though, what I'd like
is the result shown dynamically in the word document so users can see a
running total of a number of occurances, by the way its office 2003 on XP
 
H

Herb Tyson [MVP]

Word doesn't have that capability. You might be able to get something
acceptable using a macro, although, dynamic updating would be a tall order.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top