Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. 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: Aligning Text on a Specific Character.

Aligning Text on a Specific Character

Written by Allen Wyatt (last updated November 25, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


When setting tab stops in a Word document, one specific type of tab allows you to align your text according to the position of the first period within the text. Decimal tabs, as they are called, are very helpful for aligning text around a decimal point in numeric text.

What if you want to align text around a different character? What if you want to align your text around the first @ sign, an asterisk, or a hyphen? Unfortunately, Word doesn't include a way to set a "hyphen tab" like you can set a "decimal tab." There are, however, workarounds you can use.

Aligning text on a hyphen is relatively easy. When you use a decimal tab in your document, it appears that Word aligns on the tab based on either the first period or the first hyphen in your text. Thus, if two lines have the same decimal tab set, and one line contains the number 123.456, and the second contains something like a Social Security Number (555-12-1234), the first line is aligned on the period and the second line is aligned on the first hyphen in the Social Security Number.

Word only behaves this way with hyphens if the hyphen cannot be construed as a minus sign. In other words, while a phone number (480-555-1212) will align on the first hyphen, a negative number will still align on the period (-12.34) or an assumed period following the number (-12).

Aligning text on a different character is more problematic. One solution is to not use tabs, but use tables to align the text. Simply make a three-column table, in which a very thin second column is used to hold the character on which you want to align. The first column will hold the characters preceding the alignment character, and the third column will hold the characters after it. Setting up such a table can be very labor intensive, of course, but may be the best way to get your alignment just as you want it.

If tables are not acceptable for your needs, you can always stick with tabs. If you use three tabs in close proximity to each other, you can align your information as desired. In order, use a right-aligned tab followed by a center-aligned tab, and finally a left-aligned tab. If these tabs are very close to each other, you can simply type the information before the alignment character, press Tab, type the alignment character, press Tab, and type the information after the alignment character. By adjusting the placement of the three tabs, you can get the information to appear quite acceptable on the screen.

You can also stick with decimal tabs, if desired. Make sure you place a period just before the character on which you want to align and then format the period so it uses a very small font size (perhaps 1 point) and is formatted as white text. Alignment will still occur on the period, but it is virtually unnoticeable in the display or in a printout.

If you would like a more permanent solution, you can always change the regional settings within Windows itself so that it uses your desired alignment character as a decimal separator symbol. Such an approach is beyond the scope of this tip, however.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11621) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Word here: Aligning Text on a Specific Character.

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 and Changing Word's Internal Commands

If you know how to create macros, you can easily create entire replacements for Word's internal commands. Here's all you ...

Discover More

Backing Up Your AutoCorrect Entries

Develop a lot of AutoCorrect entries and you may start to wonder how you can back them up. You can easily protect all the ...

Discover More

Switching Editing Location

Excel allows you to edit the contents of a cell in two places--"the cell itself or in the Formula bar. If you want to ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Accurately Setting Tabs Using the Ruler

If you try to set tabs by clicking on the Ruler, you may not be able to set them exactly where you want. This is normally ...

Discover More

Searching for Tabs

Tabs don't normally show up in your printed document, but Word allows you to still search for them. All you need to do is ...

Discover More

Using Leaders with Tab Stops

Tab stops allow you to modify the horizontal position at which text is positioned on a line. Word allows you to preface ...

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}] (all 7 characters, in the sequence shown) 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 - 0?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


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.

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