Count phrase that spans two lines

  • Thread starter Thread starter Amy
  • Start date Start date
A

Amy

Is there a way to count the number of occurences that spans two lines?

For example, in the document, it states:

Category : Fruit
STATUS : Open

How do I count the number of occurences in Word that display these two lines
together?

Thank you for your help,
Amy
 
Press Ctrl+H

Set Find:Category : Fruit^pSTATUS: Open
Set Replace:^&

....and click Replace All. (Note: I probably didn't get the spacing correct,
but the key is to separate them with ^p, which is a special character that
means "paragraph mark" in Word search-ese. ^& is a special character meaning
"whatever you found".

This will replace all occurrences with exactly what's there (hence, not
really changing anything), and it will report the number of "changes".
 
Thank you! That worked.

Herb Tyson said:
Press Ctrl+H

Set Find:Category : Fruit^pSTATUS: Open
Set Replace:^&

....and click Replace All. (Note: I probably didn't get the spacing correct,
but the key is to separate them with ^p, which is a special character that
means "paragraph mark" in Word search-ese. ^& is a special character meaning
"whatever you found".

This will replace all occurrences with exactly what's there (hence, not
really changing anything), and it will report the number of "changes".

--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com
 

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

Back
Top