PC Review


Reply
Thread Tools Rate Thread

Count phrase that spans two lines

 
 
Amy
Guest
Posts: n/a
 
      28th Jan 2009
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

 
Reply With Quote
 
 
 
 
Herb Tyson [MVP]
Guest
Posts: n/a
 
      28th Jan 2009

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


"Amy" <(E-Mail Removed)> wrote in message
news:33D2B308-816C-4CA3-994B-(E-Mail Removed)...
> 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
>


 
Reply With Quote
 
Amy
Guest
Posts: n/a
 
      29th Jan 2009
Thank you! That worked.

"Herb Tyson [MVP]" wrote:

> 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
>
>
> "Amy" <(E-Mail Removed)> wrote in message
> news:33D2B308-816C-4CA3-994B-(E-Mail Removed)...
> > 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
> >

>
>

 
Reply With Quote
 
Herb Tyson [MVP]
Guest
Posts: n/a
 
      31st Jan 2009
Glad to help. Cheers,

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


"Amy" <(E-Mail Removed)> wrote in message
news:854448FB-1569-446F-840E-(E-Mail Removed)...
> Thank you! That worked.
>
> "Herb Tyson [MVP]" wrote:
>
>> 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
>>
>>
>> "Amy" <(E-Mail Removed)> wrote in message
>> news:33D2B308-816C-4CA3-994B-(E-Mail Removed)...
>> > 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
>> >

>>
>>


 
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
Highlight all lines containing phrase Luke Microsoft Word Document Management 4 6th Aug 2009 05:06 AM
Count how many times a phrase comes up? Deplywrker Microsoft Excel Worksheet Functions 3 13th Nov 2008 12:52 AM
How do i count the number of occurences of a phrase within a string? garyusenet@myway.com Microsoft C# .NET 1 25th Nov 2006 07:15 PM
How do I stop a phrase from being broken across two lines? =?Utf-8?B?QW1hbmRhIExsZXdlbGx5bg==?= Microsoft Word Document Management 5 19th May 2005 02:19 PM
Change Line Count to not count blank lines =?Utf-8?B?Q2Fyb2w=?= Microsoft Word Document Management 4 27th Nov 2004 01:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:32 PM.