Line counting in word

Word for Microsoft 365 Word 2021 Word 2019 Word 2016 Word 2013 Word 2010 Word 2007 More…Less

Word can automatically count the lines in a document and display the appropriate number beside each line of text. This is useful when you need to refer to specific lines in a document, such as a script or a legal contract.

Example of line numbering

By default, Word numbers every line in a document (except those in tables, footnotes, endnotes, text boxes, and headers and footers). However, you can choose which line numbers to display. For example, you can display line numbers in all or part of the document. Or you can display line numbers at intervals, such as every tenth line (10, 20, 30, and so on).

What do you want to do?

  • Add line numbers

  • Remove line numbers

Add line numbers

You can add line numbers to all or part of a document. To view line numbers, you must be in Print Layout view (click the View tab to check).

Notes: 

  • A table is counted as one line.

  • A figure is counted as one line.

  • A text box is counted as one line if it is positioned inline with the text on the page. If text on the page wraps around the text box, the lines of text on the page are counted. Lines of text inside a text box are not counted.

Add line numbers to an entire document

  1. On the Layout tab, in the Page Setup group, click Line Numbers.

    Line Numbers in the Page Setup group

    Note: If your document is divided into sections and you want to add line numbers to the entire document, you first need to select the document. Click Select in the Editing group on the Home tab, and then click Select All. Or press CTRL+A.

  2. Do one of the following:

    • To number consecutively throughout the document, click Continuous.

    • To start with number 1 on each page, click Restart Each Page.

    • To start with number 1 after each section break, click Restart Each Section.

    • For more advanced line numbering options, such as numbering at different intervals, click Line Numbering Options, and then click Line Numbers on the Layout tab.

Add line numbers to a section or to multiple sections

  1. Click in a section or select multiple sections.

  2. On the Layout tab, in the Page Setup group, click Line Numbers.

    Line Numbers in the Page Setup group

  3. Click Line Numbering Options, and then click the Layout tab.

  4. In the Apply to list, click Selected sections.

  5. Click Line Numbers.

  6. Select the Add line numbering check box, and then select the options that you want.

Top of Page

Remove line numbers

You can remove line numbers from the entire document, from a section, or from a paragraph.

  1. Click in the document, or click in the section or paragraph from which you want to remove line numbers. If you want to remove line numbers from multiple sections, select the sections.

  2. On the Layout tab, in the Page Setup group, click Line Numbers.

    Line Numbers in the Page Setup group

  3. Do one of the following:

    • To remove line numbers from the entire document or section, click None.

    • To remove line numbers from a single paragraph, click Suppress for Current Paragraph.

Top of Page

What do you want to do?

  • Add line numbers

  • Remove line numbers

Add line numbers

You can add line numbers to all or part of a document. To view line numbers, you must be in Print Layout view (click the View tab to check).

Notes: 

  • A table is counted as one line.

  • A figure is counted as one line.

  • A text box is counted as one line if it is positioned inline with the text on the page. If text on the page wraps around the text box, the lines of text on the page are counted. Lines of text inside a text box are not counted.

Add line numbers to an entire document

  1. On the Page Layout tab, in the Page Setup group, click Line Numbers.

    Word Ribbon Image

    Note: If your document is divided into sections and you want to add line numbers to the entire document, you first need to select the document. Click Select in the Editing group on the Home tab, and then click Select All. Or press CTRL+A.

  2. Do one of the following:

    • To number consecutively throughout the document, click Continuous.

    • To start with number 1 on each page, click Restart Each Page.

    • To start with number 1 after each section break, click Restart Each Section.

    • For more advanced line numbering options, such as numbering at different intervals, click Line Numbering Options, and then click Line Numbers on the Layout tab.

Add line numbers to a section or to multiple sections

  1. Click in a section or select multiple sections.

  2. On the Page Layout tab, in the Page Setup group, click Line Numbers.

    Word Ribbon Image

  3. Click Line Numbering Options, and then click the Layout tab.

  4. In the Apply to list, click Selected sections.

  5. Click Line Numbers.

  6. Select the Add line numbering check box, and then select the options that you want.

Top of Page

Remove line numbers

You can remove line numbers from the entire document, from a section, or from a paragraph.

  1. Click in the document, or click in the section or paragraph from which you want to remove line numbers. If you want to remove line numbers from multiple sections, select the sections.

  2. On the Page Layout tab, in the Page Setup group, click Line Numbers.

    Word Ribbon Image

  3. Do one of the following:

    • To remove line numbers from the entire document or section, click None.

    • To remove line numbers from a single paragraph, click Suppress for Current Paragraph.

Top of Page

Need more help?

Organize your documents by numbering them

What to Know

  • Select Layout > Page Setup > Line Numbers > choose option > select Apply to drop-down > Selected sections.
  • Next, select Line Numbers > Add line numbering > OK.

This article explains how to add line numbers to documents in Word for Microsoft 365, Word 2019, 2016, 2013, 2010, and 2007.

How to Add Line Numbers to a Word Document

To include line numbers in a document:

  1. Go to Layout > Page Setup > Line Numbers.

    If the document is divided into sections and you want to add line numbers to the entire document, press Ctrl+A to select the entire document.

  2. Choose one of the following options:

    • Continuous: Allows consecutive numbering throughout the document.
    • Restart Each Page: Starts each page with the number 1.
    • Restart Each Section: Starts with number 1 after each section break.
    • Line Numbering Options: Allows more advanced line numbering options, for example, to number at different intervals.
  3. To add line numbers to a specific section or to multiple sections, choose Line Numbering Options to open the Page Setup dialog box, then select the Layout tab.

  4. Select the Apply to drop-down arrow and choose Selected sections.

  5. Select Line Numbers.

  6. Select the Add line numbering check box.

  7. Select any other options you want, then select OK to close the window.

  8. Select OK to save your changes.

All About Line Numbers

Microsoft Word automatically numbers all lines except for a select few. It counts an entire table as one line. It also skips text boxes, headers and footers, and footnotes and endnotes.

Microsoft Word does count figures as one line, as well as a text box that has inline with text wrapping applied. However, the lines of text within the text box are not counted.

You decide how Word handles line numbers. For example, apply line numbers to specific sections, or number lines in increments such as every tenth line.

Then, when it’s time to finalize the document, remove the line numbers and you’re ready to go.

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Add line numbers to a section or to multiple sections

  1. Click in a section or select multiple sections.
  2. On the Layout tab, in the Page Setup group, click Line Numbers.
  3. Click Line Numbering Options, and then click the Layout tab.
  4. In the Apply to list, click Selected sections.
  5. Click Line Numbers.

Contents

  • 1 How do I add line numbers in Word for Mac?
  • 2 How do I number every 5th line in Word?
  • 3 How do you get line numbers on every 5 lines?
  • 4 How do we show line numbers next to the code?
  • 5 How many lines are in a Word document page?
  • 6 How do I change line number in Word?
  • 7 How do you display line numbers in VS?
  • 8 How do I find line numbers?
  • 9 How do I count the number of rows in word?
  • 10 Does Word Count Count Lines?
  • 11 How do you insert a line across the page in word?
  • 12 Why can’t I see line numbers in Word?
  • 13 How do I move line numbers to the right?
  • 14 How do I change line number font?
  • 15 How do I show line numbers in IntelliJ?
  • 16 How do I show line numbers in vim?
  • 17 How do you number lines in a text file?
  • 18 How do I show line numbers in less command?
  • 19 How do I show line numbers in nano?
  • 20 How do I copy line numbers in Word?

How do I add line numbers in Word for Mac?

In your Word document, click the “Layout” tab in the ribbon bar and then click on the “Line Numbers” button. Select “Restart Each Section” from the drop-down menu. If you want to add a new section break, click the “Breaks” button. This is just above the “Line Numbers” button in the “Layout” tab.

How do I number every 5th line in Word?

How to number every nth line in Word 2013

  1. On Page Layout tab, click on Line Numbers and click Line Numbering Options…
  2. Page Setup opens.
  3. Line Numbers windows opens.
  4. You can start numbering at a specific number (Start at), control number position (From text) and number every nth line (Count by).

How do you get line numbers on every 5 lines?

Add line numbers to a section or to multiple sections

  1. Click in a section or select multiple sections.
  2. On the Page Layout tab, in the Page Setup group, click Line Numbers.
  3. Click Line Numbering Options, and then click the Layout tab.
  4. In the Apply to list, click Selected sections.
  5. Click Line Numbers.

How do we show line numbers next to the code?

Display line numbers in code

  1. On the menu bar, choose Tools > Options. Expand the Text Editor node, and then select either the language you’re using or All Languages to turn on line numbers in all languages.
  2. Select the Line numbers checkbox.

How many lines are in a Word document page?

The standard number of lines per page tends to be 46.

How do I change line number in Word?

Simply follow these steps:

  1. Display the Home tab of the ribbon.
  2. Click the small icon at the bottom-right of the Styles group.
  3. Hover the mouse pointer over the Line Number style.
  4. Click on the drop-down arrow and choose the Modify option from the resulting menu.

How do you display line numbers in VS?

1 Answer. On the menu bar, choose Tools, Options. Expand the Text Editor node, and then select either the node for the language you are using, or All Languages to turn on line numbers in all languages.

How do I find line numbers?

You can find out the phone number for your local phone company by looking at your monthly bill or dialing “411” from your phone line. Verify your identity.

How do I count the number of rows in word?

Right-click on the selected table and select Table Properties from the shortcut menu. Click on the Row tab — the number of rows selected is listed at the top of the dialog box.

Does Word Count Count Lines?

Word counts the number of words in a document while you type. Word also counts pages, paragraphs, lines, and characters.

How do you insert a line across the page in word?

Press Ctrl+A to select all the text in your document. Click Home > Shrink Font one or more times. As you click Shrink Font, Word decreases the size of every font in your document.

Why can’t I see line numbers in Word?

To use line numbers in Word, you must be in Print Layout view. Go to the View tab and click Print Layout in the Views section of the ribbon. Next, insert the numbers by heading to the Layout tab. Click the Line Numbers button in the Page Setup section of the ribbon.

How do I move line numbers to the right?

Remember though, it is not section alignment alone. For line numbers to appear in the right margin you must set the section alignment to right to left “and” have a right to left script language enabled.

How do I change line number font?

Process

  1. Go to the Home tab of the Ribbon after enabling line numbering.
  2. Under Styles, click the Dialog Box Launcher arrow to open the Styles pane.
  3. In the Styles pane, click Options.
  4. Under “Select styles to show” in the Options window, select “All styles”.
  5. Click OK to exit out of the Options window.

How do I show line numbers in IntelliJ?

IntelliJ IDEA 15

  1. File > Settings… > Editor > General > Appearance > Show line numbers.
  2. Hit Shift twice > write “line numbers” > Show Line Numbers (that one that has the toggle) > change the toggle to ON.

How do I show line numbers in vim?

How to display line number in vim

  1. Press the ESC key.
  2. At the : prompt type the following command to run on line numbers: set number.
  3. To turn off line numbering, type the following command at the : prompt again: set nonumber.
  4. One can set relative line numbers by typing: :set relativenumber.

How do you number lines in a text file?

4 Answers. In notepad , you can type Ctrl + g to view current line number. It also at bottom-right corner of status-bar.

How do I show line numbers in less command?

All you have to do is pass either -N or –LINE-NUMBERS option to the less command. This option forces less to show a line number at the beginning of each line in the screen.

How do I show line numbers in nano?

You can ask nano to temporarily turn on line numbers by pressing Alt-C (meaning “Hold down the Alt key and the C key simultaneously”). This will show line and column numbers near the bottom of nano’s window.

How do I copy line numbers in Word?

Assuming there is a consistent amount of space between the margin and the first desired word on each line, what you could do after pasting is to use a block cut (Shift-Alt and drag the cursor over the desired area, followed by Ctrl-X), then select all the lines, delete what’s left, then paste again – voila! the numbers

signing over document featured

When reviewing documents with others or creating a contract, you can enable line numbers in Word for handy reference points.

Using line numbers, you have handy reference points within your document. For things like contracts and scripts, or documents that you are reviewing with others, you can easily insert line numbers in Microsoft Word. And like many Office features, you have flexibility. You can decide how and where your line numbers appear.

To prepare you for using line numbers, we’ll show you how to insert them, your numbering options, and how to remove them if needed.

To use line numbers in Word, you must be in Print Layout view. Go to the View tab and click Print Layout in the Views section of the ribbon.

Next, insert the numbers by heading to the Layout tab. Click the Line Numbers button in the Page Setup section of the ribbon. Then, select the line numbering option you’d like to use from the following:

  • Continuous: Numbers lines consecutively throughout the document.
  • Restart Each Page: Begins with number 1 on each page.
  • Restart Each Section: Begins with number 1 after each section break.

Line number position options

After making your selection, you’ll see the page numbers along the left side of your document.

Line numbers in Word

Notes for Line Numbers

Here are a few notes for using line numbers in Word to keep in mind.

  • A table counts as one line.
  • A figure counts as one line.
  • A text box counts as one line. If lines of text wrap around the box, those lines of text are counted. Lines of text inside the text box are not counted.

Customize Your Line Numbers

You have a few settings that you can adjust for your line numbers, such as spacing from text and the starting number.

To access these settings, click Line Numbers on the Layout tab and select Line Number Options. Click the Line Numbers button on the Layout tab of the pop-up window.

Click Line Numbers in Page Setup

When the tiny Line Numbers window displays, start by checking the box at the top for Add line numbering. You cannot adjust the other options in the window if the box is unchecked.

Customize line numbers in Word

Start at: Select a number if you want something other than number 1.

From text: The default setting is Auto, but you can use the arrows to select a specific spacing for the line numbers in relation to your text.

Count by: Rather than numbering each and every line, you can set a Count By number. For example, if you select 2, your line numbers will count by two, as in the screenshot below.

Line numbers counted by two

Numbering: Like the options in the Line Numbers drop-down box on the Layout tab, you can select Restart each page, Restart each section, or Continuous here as well.

After making your adjustments, click OK and then OK once more to apply them.

Remove Line Numbers in Word

If you want to turn off the line numbers, you can do this for the entire document or your current paragraph.

Click Line Numbers on the Layout tab. Then do one of the following:

  • Select None to remove the line numbers from the entire document.
  • Select Suppress for Current Paragraph to remove the numbering for a particular paragraph (where your cursor is located).

Choose None or Suppress

Get on the Same Page With Line Numbers in Word

Make sure everyone is on the same page, line, or paragraph with line numbers in Word. Whether you use them for a short time or keep them on the document forever, they come in handy!

For related how-tos, take a look at how to add page numbers to your documents and how to work with page and section breaks in Word.

Be sure to keep up with what’s new on groovyPost, follow us on Twitter!

Word Logo

Adding line numbers to a Microsoft Word document can help you point others to exact positions within it, especially in documents with multiple pages. Here’s how to quickly add line numbers in Word.

These instructions should work for recent Office versions (from 2010 onwards). Before you begin, note that Word will treat tables and text boxes as if they’re on a single line, regardless of how large they are.

Adding Line Numbers to an Entire Document

To start adding line numbers, you’ll need to open your Word document. In the ribbon bar at the top, click on the “Layout” tab. From here, click the “Line Numbers” button.

A drop-down menu offers several potential options. To have line numbers that run through your document continuously, rather than restarting on each new page, click on the “Continuous” option.

To have the line numbers restart on each new page, select “Restart Each Page” instead.

Once selected, the line numbers will appear on the left side of the document page.

An example of line numbers being used in a Microsoft Word document

Line numbers will appear only in the print view mode, so if you have another viewing mode selected, click on the “Print Layout”  button in the bottom-right corner of your Word document window.

Adding Line Numbers to Individual Sections

It’s possible to separate pages of a Word document into individual sections using section breaks. You can set Word to restart the sequence of line numbers with each new section break.

RELATED: How to Find Section Breaks in a Word Document

In your Word document, click the “Layout” tab in the ribbon bar and then click on the “Line Numbers” button. Select “Restart Each Section” from the drop-down menu.

If you want to add a new section break, click the “Breaks” button. This is just above the “Line Numbers” button in the “Layout” tab.

From there, click “Continuous” to add a new section break without shifting the Word cursor to a new page.

A new set of line numbers will begin immediately underneath the newly-inserted section break.

An example of line numbers in Word, with a new sequence of numbers starting after a section break

Removing Line Numbers

If you’d prefer to remove line numbers from your document, in whole or in part, you can also do this from the “Line Numbers” menu (Layout > Line Numbers).

To remove them from your document entirely, click “None” in the “Line Numbers” drop-down menu.

If you want to hide them from a particular paragraph, click on the paragraph and then select “Suppress for Current Paragraph” from the “Line Numbers” drop-down menu instead.

This will completely remove the paragraph from the line numbers sequence. The sequence will restart with the following number on the next line immediately underneath the paragraph.

An example of line numbers missing a paragraph in Word

Line Number Formatting

By default, your line numbers will appear with the same font, size, and color as specified by the default “Line Number” style in Word. To modify the appearance of your line numbers, you’ll need to modify this text style, although Word hides it by default.

First, click on the “Home” tab in your ribbon bar. Click the vertical arrow menu button in the lower-right corner of the “Styles” section. This will bring up an extra pop-up “Styles” menu.

From there, click the “Options” button.

In the “Select Styles to Show” drop-down menu, select “All Styles” before clicking the “OK” button to save.

In the Style Pane Options menu, choose All Styles from the Select Styles to Show drop-down menu

You’ll now be able to edit the “Line Number” font style.

In the pop-up “Styles” menu, find the “Line Number” option. Click on the side menu arrow next to the listing and then click on the “Modify” button.

In the “Modify Style” menu, edit the formatting options for your line number style, as appropriate.

Click “OK” to apply the new style to your line numbers.

Once applied, your new font style will be applied to all of the line numbers in your Word document.

READ NEXT

  • › How to Number Paragraphs in Microsoft Word
  • › Google Chrome Is Getting Faster
  • › How to Adjust and Change Discord Fonts
  • › This New Google TV Streaming Device Costs Just $20
  • › HoloLens Now Has Windows 11 and Incredible 3D Ink Features
  • › BLUETTI Slashed Hundreds off Its Best Power Stations for Easter Sale
  • › The New NVIDIA GeForce RTX 4070 Is Like an RTX 3080 for $599

Понравилась статья? Поделить с друзьями:
  • Line chart with excel
  • Library microsoft office interop excel
  • Line chart in word
  • Library format in excel
  • Line break in excel vba