Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, and 2016. 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 July 4, 2018)

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, 2013, and 2016. 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

Changing Macro Cell References Based on Edits

Place a cell reference in a macro, modify the structure of your worksheet, and you may soon find that the cell reference ...

Discover More

Randomly Resetting Numbering

Have you ever been frustrated by the automatic numbering feature in Word? You are not alone. Fortunately, there are a few ...

Discover More

Understanding Styles

Styles are a key concept in Microsoft Word. If you understand styles, you will find it much easier to use Word effectively.

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)

Creating an Index Entry

In order to create an index, you first need to create the entries that will be used to compile the index. Here's how you ...

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

Specifying a Collating Sequence for Indexes

The indexing feature provided by Word can be a great help, but in some situations it may not sort your index as you ...

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 6 - 1?

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.