Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Numbering Only Certain Lines.

Numbering Only Certain Lines

by Allen Wyatt
(last updated March 10, 2014)

Peter noted that Word allows him to add line numbers to a document. In the Line Numbers dialog box he can specify what number he wants to start at and what "count" Word should use for incrementing the line numbers. Peter wants to start at 1 and then count by 10, so that lines 1, 11, 21, and so on are numbered in the document. However, when Peter makes these settings (1 and 10) in the Line Numbers dialog box, Word doesn't display a number next to line 1; it only displays line numbers at lines 10, 20, etc. He wonders how he can get the line numbering that he needs.

The short answer is that you can't get the line numbering you need. There are two fields in the Line Numbers dialog box that control this matter. The Start At setting indicates what line number the first line should be considered. This setting can apply to either the first line of a page, the first line of the document, or the first line of a section, depending on the Numbering radio button that is selected.

The other field that controls this matter is the Count By field. In our experience, the name of this field is actually misleading in its inaccuracy. The words "Count By" could be understood in two different ways. First, if could be understood to mean the number by which each line is incremented. With this understanding if you set Count By to a value such as 3, the first line of the page would be designated as line 1 (or whatever number you specify in the Start At field) and the second line would be 4, the third line 7, etc.

The second possible understanding of the field is that it indicates which lines, incremented from the specification in the Start At field, should have a line number shown. In this understanding if you set Count By to a value such as 3, the first line of the page would be designated as line 1, the second line as 2, the third line as 3, and the fourth line as 4. Only the line numbers for lines 1, 4, 7, etc. would be shown in the document. This understanding seems to be the way that Peter understands the controls.

Unfortunately, neither of these two understandings is correct. The Count By field is simply a divisor that indicates which line numbers should be displayed in the document. In appears that Word uses this setting in a modulo operation involving the current line number. (A modulo operation is performed when you do an integer division of one number by another. The modulo of the operation is the remainder of the division.)

In other words, if Count By is set to 3, then Word divides the current line number by 3 and, if the modulo is 0 (there is no remainder), the line number is displayed. Thus, lines 3, 6, 9, 12, etc. have line numbers displayed; all other lines have their line numbers hidden. This is why Peter sees the behavior he does: when Count By is set to 10, then line numbers for lines 10, 20, 30, etc. are displayed and all others are not.

Because of this behavior of the Count By setting (which really does no counting at all), it is impossible to have Word display numbers for line 1, line 11, line 21, line 31, etc. The reason is because there is no value that you could divide each of these numbers by and end up with a modulo of 0.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (9589) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Numbering Only Certain Lines.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Default Cell Movement when Deleting

Delete a cell or a range of cells, and Excel needs to figure out how to rearrange the void left by the deletion. You can ...

Discover More

Indirect References to a DSUM Parameter

Indirect references can be very helpful in formulas, but getting your head around how they work can sometimes be confusing. ...

Discover More

Peculiar Font Differences

Have you noticed page layout differences when you open a document on different systems? There are a number of reasons why ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

MORE WORDTIPS (MENU)

Line Numbering and Tables

Some types of documents (such as legal documents) may require that individual lines of text be numbered. If you use tables to ...

Discover More

Positioning Line Numbers

Line numbers can be added to a document, and is typically done in legal documents. The line numbers appear to the left of ...

Discover More

Setting the Starting Line Number

You are not limited to starting the line numbering in a document with 1. You can, instead, start the numbering at any other ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments for this tip:

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)

This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.

Links and Sharing
Share