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

Speeding Up Document Display

Are your documents displaying too slowly? You can configure Word so that it is as quick as possible on displaying by using ...

Discover More

Working with Form Fields

You know you want to use form fields in your document (they are essential in creating forms, after all) but you need to ...

Discover More

Deleting a Large Number of Styles

Styles are a fantastic tool for formatting documents. As you work with documents created by others, you may want to get rid ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Deleting Index Entries

When you construct an index you need to insert all sorts of index fields throughout your document. If you want to later ...

Discover More

Inconsistent Formatting in an Index

When indexing a document, you may find that some of your index entries aren't formatted the save as your other index entries. ...

Discover More

Creating a Single Index from Multiple Documents

When dealing with large projects, it is not uncommon to break the project into multiple documents. When it comes time to ...

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 less than 7?

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.