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

Finding a Missing Toolbar

A few methods for finding an errant toolbar in Word.

Discover More

Pasting a Comment into Your Worksheet

Excel allows you to not only put information into cells, but into comments attached to those cells. Here's how to copy the ...

Discover More

Borders Surround Lines Instead of Paragraphs

Word gives you the ability to place borders around different elements of your document. If you try to place a border around a ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Multiple Indexes in a Document

Adding a single index to a document is fairly easy. What if you want to add multiple indexes, however? And what if you want ...

Discover More

Using Subentries in an AutoMark File

If you have a large document and need to create a complicated index, an AutoMark file can make your life much easier. This ...

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

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 8Mpixels. 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 7 - 0?

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.