Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Aligning Text on a Specific Character.

Aligning Text on a Specific Character

by Allen Wyatt
(last updated September 7, 2015)

3

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. For instance, if you wanted to align on the @ sign, you could follow these steps:

  1. Get out of Word completely.
  2. Click on Start to display the Start menu.
  3. Click on Control Panel. Windows displays the Control Panel window.
  4. Double-click on the Regional and Language Options applet. Windows displays the Regional and Language Options dialog box.
  5. Make sure the Regional Options tab is displayed. (See Figure 1.)
  6. Figure 1. The Regional Options tab of the Regional and Language Options dialog box.

  7. Click the Customize button. Windows displays the Customize Regional Options dialog box.
  8. Make sure the Numbers tab is displayed. (See Figure 2.)
  9. Figure 2. The Numbers tab of the Customize Regional Options dialog box.

  10. Change the Decimal Symbol to the @ character (just type it in the Decimal Symbol box).
  11. Click on OK as many times as necessary to close the dialog boxes.
  12. Close the Control Panel.

These steps will vary, depending on your version of Windows, but you get the idea. With the decimal separator changed, Word aligns decimal tabs according to the character you specified in step 7. The biggest drawback to this, of course, is that the change is system-wide, and you may have unintended consequences in other programs.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (530) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) 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

Maintaining Delivery Address Information for Envelopes

Using the Envelopes and Labels dialog box to print envelopes is quick and easy. It can also be frustrating, however, since ...

Discover More

Printing a Style Sheet

Styles are a fantastic way to format your documents easily and consistently. At some point you may want to print out a list ...

Discover More

Getting Rid of MRU Entries

By default Word dutifully keeps track of the different files you've worked on in the past. If you want to delete an entry ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (menu)

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

Discover More

Understanding Default Tab Stops

Ever wonder how Word determines the default setting for each tab stop in your document? This article should satisfy any ...

Discover More

Automatically Changing Tab Stops in the Footer

If you use a tab stop in your footer to align information at the right margin, you may not get what you expect when you later ...

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. 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 minus 1?

2016-05-04 06:40:22

Dave Verona

How do you align } in an MS Word document? I am trying to type what is shown below:

8978334}
3409344

But, I want the } character to be aligned in front of both numbers.


2012-12-15 19:01:45

Mike

In a 120 pg. document, I have a few hundred entries like this:

DEB
OMG, it's alive!

The thing is wriggling on the floor.

BILL
Nah, it's just squirming.

What would be the easiest and fastest way to move all the name/header identifiers about a quarter inch to the right? Is there a way, other than down arrowing through the doc and putting in another tab or a couple spaces in front of each?
Thanks!


2012-04-22 20:33:06

Bruno

The decimal tab can still "see" hidden text, so try embedding a decimal point as Hidden Text next to the character you want to align to.
Press <Ctrl><Shift>H to toggle the Hidden Text attribute of any highlighted character.
For debugging, enable Show Hidden Text in the Tools | Options | View | Formatting Marks dialog.
And the Print Preview button is a handy way to confirm that the final loyout looks right.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon 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.