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

Easily Extending Selections

The F8 key is a shortcut that allows you to turn on Word's extend mode. This mode is used to "extend" the text being ...

Discover More

Determining a Simple Moving Average

A moving average can be a great way to analyze a series of data points that you've collected over time. Setting up a ...

Discover More

Word Mail Merge Magic

The mail merge tool available in Word is powerful, allowing you to use data from a variety of sources to create hundreds ...

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)

Specifying Index Section Dividers

When adding an index to your document, you can use one of the available field switches to specify how the index should be ...

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

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

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.