Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Numbering Only Certain Lines.

Numbering Only Certain Lines

Written by Allen Wyatt (last updated December 25, 2021)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


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, it 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. It 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 (9590) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word 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

Forcing Input to Uppercase

If you type information into a workbook, you may want to make sure that what you type is always stored in uppercase. ...

Discover More

Forcing a Page Break Before a Paragraph

There are times that you just want to begin a paragraph (perhaps a heading) at the top of a new page. Word allows you to ...

Discover More

Quickly Copying Styles

You can easily use regular editing techniques to copy styles from one document to another. Here's how to make quick work ...

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 (ribbon)

Setting the Starting Line Number

Line numbers are an important part of some documents, such as those prepared in the legal profession. If you want to ...

Discover More

Adding Line Numbers

Many types of documents, such as legal documents, require the use of line numbers to make it easier to identify specific ...

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

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 1 + 1?

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 ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
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.