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: Automatic Numbers with Leading Zeroes.

Automatic Numbers with Leading Zeroes

Written by Allen Wyatt (last updated April 9, 2024)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


1

Word provides a tool that allows you to add automatic numbering to paragraphs; this tool has been discussed in other WordTips. At some point you may want to add leading zeros to your numbering, such as with 00001, 00002, 00003, etc.

If you add the leading zeros to what you type (type four zeros, the number one, a period, a tab, and your paragraph text), then when you press Enter Word will format the paragraph, so it is numbered. The problem is that all of your leading zeros are, with the exception of one of them, removed in the process. This means that you end up with 01 instead of 00001 at the beginning of the paragraph.

You can, if you desire, customize the way the numbering is done. (In the Numbering tool drop-down list choose Define New Number Format to display the appropriate dialog box.) You can then add additional zeros to the beginning of the format for the paragraph.

One drawback to this approach is that the zeros you add are not really a part of the format; they are, instead, just additional characters that precede the numbers managed by Word. This isn't a problem until you get more than 99 items in your numbered list. The number 00099 looks fine, but the next paragraph will be 000100, which is obviously wrong. You could then adjust the formatting of the paragraph so you only have two extra zeros at the lead and that numbering starts at 100 with that paragraph, but this can be bothersome when you later add or remove paragraphs from within your numbered list.

Because of this drawback, many people use a different method of automatic numbering when special formats (like the leading zeros) are needed. The most common approach is to use the SEQ field. For example, you could use the following format to implement the leading zeros:

{SEQ MyList \# "00000"}

Using a SEQ field like this at the beginning of each of your paragraphs will provide the leading-zero numbers that you want. You'll need to update the fields after making any changes to the list, but you'll get the results you want.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10609) 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: Automatic Numbers with Leading Zeroes.

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

Moving the Insertion Point to the End of a Line

When writing a macro to process the text in a document, you may need to move the insertion point to the end of a line. ...

Discover More

Sorting Dates by Month

Sorting by dates is easy, and you end up with a list that is in chronological order. However, things become a bit more ...

Discover More

Counting Jobs Completed On a Date

When you store the date and time in a single cell, it can be a bit confusing to count how many cells contain a particular ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Aligning Numbered Lists on the Period

When you convert a paragraph to a numbered list, Word adds a number at the start of the paragraph, as you would expect. ...

Discover More

Turning Off Automatic Numbered Lists

Type what Word thinks is a numbered list, and it will helpfully format the text to match what it thinks your numbered ...

Discover More

Converting Lists to Text

If you have a numbered list in a document, you might want to convert it to regular, non-dynamic text and not lose the ...

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 8 + 7?

2023-03-26 20:34:05

Troy D

I have been searching about adding an Invoice/statement number that will update to the next number in the sequence when I right click and choose update field. I would also like to have the Invoice/statement number to have zeroes in front of the number until it reaches 099 and then change to 100, how do I do that? I have read one of the tips by a Dave such and such about adding zeroes in front of the number in SEQ fields and he says to add additional fields but he doesn't explain how to do that. I know my way around Word but I am not that informed in all the functioning's of Word 2013. Can you elaborate on how to do this? I am including an image (see Figure 1 below) . From your article above, MyList is your Identifier or your Bookmark? I understand the Identifier is what you are calling the SEQ, right? Can you explain what each of these mean after SEQ..."SEQ Identifier [Bookmark] [Switches]?

Thank you for your help and time.

Figure 1. 


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.