Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. 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: Specifying an Index Page-Range Separator.

Specifying an Index Page-Range Separator

by Allen Wyatt
(last updated November 6, 2015)

3

When you insert the index field in your document you can indicate how you want Word to separate page ranges in your index. Normally, Word uses a dash to separate the numbers in a range, as in the following example:

Widgets: 27–41

For some specialized indexes, you may want to use a different character other than a dash. You specify a different page range separator by adding the \g switch to your index field, followed by the character to use as a divider. For instance, the following field use specifies that a colon be used instead of a dash:

{index \g :}

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12592) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word here: Specifying an Index Page-Range Separator.

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

Printing a File List

It is often helpful to have a list of all the documents in a given directory or folder. Word doesn't have a built-in way ...

Discover More

Sheets for Days

Need a quick way to have a worksheet for each day in a month? Here's a macro that makes the worksheet creation a snap.

Discover More

Number of Terms in a Formula

Formulas are made up of operands that separate a series of terms acted upon by the operands. You may want to know, for ...

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)

Improper Index Page Numbers

Adding an index to a document can be a nice finishing touch, particularly if the document is a long one. What happens if ...

Discover More

Creating an Index Entry for a Range of Pages

Putting together an index for your documents can be challenging, but Word provides some great tools to make the task ...

Discover More

Chapter Numbers in Indexes and TOAs

Word allows you to define prefixes for page numbers. These are often used for chapter or section numbers in a large ...

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}] 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 seven more than 2?

2015-11-10 12:09:20

Pierre Sundborg

Tony: Yes, that works! The process is to right-click anywhere in the Index, left-click on "Toggle Field Codes", then insert into that { INDEX ...} line
g "-" where the hyphen between the required quotation marks is not a normal hyphen, but a nonbreaking, most easily inserted by CTRL+SHIFT+HYPHEN. Then right-click on that { INDEX ... } code field, left-click on "Toggle Field Codes" to again see the index, right-click in index, left-click on "Update Field" -- and there will be no more dangling hyphens at the ends of index lines between the page #s of ranges. Thanks!


2015-11-09 06:58:17

Tony Nixon

@Pierre - I've not been able to test this but you _might_ be able to specify a nonbreaking hyphen as the separator ALT0173


2015-11-06 11:41:09

Pierre Sundborg

Using the top example Widgets: 27-41 is there a way to keep it from breaking if at end of an index line: Widgets: 27-
41 so it would keep 27-41 together?


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.

Newest Tips
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.