Setting Horizontal Alignment

Written by Allen Wyatt (last updated March 23, 2024)
This tip applies to Excel 97, 2000, 2002, and 2003


Excel provides many different ways you can align information from left to right (horizontally) within a cell. You set the alignment by first selecting the cells you want to format and then choosing Cells from the Format menu. Make sure the Alignment tab is selected. (See Figure 1.) You make your selection using the Horizontal drop-down list.

Figure 1. The Alignment tab of the Format Cells dialog box.

There are eight different settings you can use for horizontal alignment, each of which deserves explanation. (The most common of these horizontal alignment methods are also available from the Formatting toolbar.)

  • General. When you first enter information in Excel, the horizontal alignment is set to General. This means that text aligns to the left of the cell and numbers align to the right. Typically, since Excel uses General as a default, you will not need to choose it explicitly except to remove any horizontal alignment formatting you previously applied.
  • Left. Left alignment means that everything in the cell aligns to the left side of the cell. Unless you have a need to align your numbers or dates to the left, there is no real need to use this alignment option. That is because the default alignment (General) aligns all text to the left side of the cell. When text is left justified, text that will not fit within the width of the column will overrun the right cell border. This will not happen if there is anything in the cell to the right of the cell containing the wide text. You can also left-justify information by using the Align Left tool on the toolbar. In Excel 2000 and later versions you can also set an indent, in characters, if you use Left alignment.
  • Center. Center alignment aligns all information in the middle of the cell. If text is centered and it needs more space than is available in the cell, it will overrun the left and right cell boundaries in order to be displayed. If there is anything in the cells on either side of the centered cell, the text will not extend into the occupied cell. You can also center information by using the Center tool on the toolbar.
  • Right. It is most useful to right-align information if you are formatting cells containing text. That is because the default horizontal alignment (General) right-aligns numbers and dates. If text is right-aligned in a cell and it is wider than the column width, it will extend past the column boundary into the cell to the left. Excel will not extend the text, however, if there is anything in the cell to the left of the one containing the text. You can also right-align information by using the Align Right tool on the toolbar. In Excel 2002 and Excel 2003 you can also set an indent, in characters, if you use Right alignment.
  • Fill. By all rights, this should not be an alignment option. That's because it really doesn't align information. Instead, it repeats whatever you enter across entire width of the column. Thus, if you want a column full of asterisks, all you need to do is use this alignment option an put one asterisk in the column.
  • Justify. This alignment option is used primarily for text. It forces the information to fill the entire width of the column, wrapping text to additional lines, if necessary. This is the same sort of alignment feature available in many word processing programs.
  • Center Across Selection. When you are creating forms or reports in Excel, it is not unusual to have headings. If you use the Center Across Selection alignment option, you can center text across a group of columns. To use this type of alignment in the easiest manner, make sure the information to be centered is in the first column of the selection. Then select the columns you want to center it across. Finally, select the Center Across Selection option in the Horizontal drop-down list.
  • Distributed. This alignment option is available only in Excel 2002. It results in the cell contents being distributed across the width of the cell, to line up with both the left and right side. If you select this option, you can either set an indent, in characters (which applies to both the left and right sides of the cell), or you can choose to justify the contents in the cell. You should play with this option carefully; it is not nearly as helpful as the Justify alignment used in word processors such as Word. In Excel 2003 you can also set an indent, in characters, if you use Distributed alignment.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2123) applies to Microsoft Excel 97, 2000, 2002, and 2003.

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 Fonts in Multiple Workbooks

If you need to change fonts used in a lot of different workbooks, the task can be daunting, if you need to do it ...

Discover More

Header and Footer Formatting Codes

When creating headers and footers in an Excel worksheet, you can use special codes to add or format information. This tip ...

Discover More

Backing Up Your Customized Toolbars

After customizing your Excel toolbars, it is a good idea to make a backup of the file that contains the information. ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (menu)

Underlining Text in Cells

Want a quick way to add some underlines to your cell values? It's easy using the shortcuts provided in this tip.

Discover More

Adding a Custom Format to those Offered by Excel

Adding a custom format to Excel is easy. Having that custom format appear in all your workbooks is a different story ...

Discover More

Using a Custom Format to Add Dashes

Want some dashes automatically added in values you display in a cell? It may be trickier to develop a custom format than ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, 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 2 + 2?

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

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, 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.