PC Review


Reply
Thread Tools Rate Thread

Counting nonblank lines in word

 
 
=?Utf-8?B?anBqbWxq?=
Guest
Posts: n/a
 
      9th Aug 2007
Is there a way to count nonblank lines within a document without having to
delete all of the blank lines? I am using Word 2000. I count lines to
invoice for medical transcription.
--
jpjmlj
 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      9th Aug 2007
If you use styles, there shouldn't be any blank lines? You can achieve the
spacing with the paragraph space before/after parameter of the style.

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

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

jpjmlj wrote:
> Is there a way to count nonblank lines within a document without
> having to delete all of the blank lines? I am using Word 2000. I
> count lines to invoice for medical transcription.



 
Reply With Quote
 
Herb Tyson [MVP]
Guest
Posts: n/a
 
      10th Aug 2007
It depends on what you mean by "line". Lines can occur in at least three
ways in an uncomplicated Word document:

Paragraph mark (Enter)

Automatic wrapping

Manual line break (Shift+Enter)

Blank lines can occur because of two consecutive paragraph marks, manual
line breaks, or a combination of the two.

Counting non-blank lines could be as simple as counting the lines, then
subtracting the number of blank lines. Counting blanks, therefore, isn't
necessarily trivial. Assuming that you're not using any manual line breaks,
if you press Ctrl+H and change:

Find what:^p^p

Replace with:^&

This searches for two consecutive paragraph marks, and replaces them with
the same.

Choose Replace all, Word will tell you how many "changes" it made, and this
*might* provide the number of blank lines, or at least something close. Note
that this change operation doesn't actually change anything. That's because
^& means "whatever matches the Find what expression". Hence this
find/replace is just a convenient trick to count the number of occurrences
of something in Word.

Note that tables with blank cells, text boxes, and perhaps other
complications can interfere with the accuracy of this method.

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


"Graham Mayor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you use styles, there shouldn't be any blank lines? You can achieve the
> spacing with the paragraph space before/after parameter of the style.
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web site www.gmayor.com
> Word MVP web site http://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
> jpjmlj wrote:
>> Is there a way to count nonblank lines within a document without
>> having to delete all of the blank lines? I am using Word 2000. I
>> count lines to invoice for medical transcription.

>
>


 
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 lines Jerre Microsoft Access Reports 1 14th Apr 2008 09:04 PM
counting nonblank rows stumped Microsoft Excel New Users 8 5th Mar 2008 06:46 PM
Counting Nonblank cells based on criteria in another cell rousseaucharlene@hotmail.com Microsoft Excel Misc 2 8th May 2007 03:50 PM
counting nonblank cells =?Utf-8?B?c2JyaW1sZXk=?= Microsoft Excel Worksheet Functions 7 18th May 2005 10:22 AM
Counting nonblank and non white space cells =?Utf-8?B?QW5kcmV3?= Microsoft Excel Worksheet Functions 6 8th Feb 2005 04:33 AM


Features
 

Advertising
 

Newsgroups
 


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