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
 
Back
Top