Setting Horizontal Alignment

by Allen Wyatt
(last updated March 26, 2016)

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

Double Indenting

Indenting a paragraph is easy in Word. In fact, the program provides shortcut keys that make it a snap. Indenting from both ...

Discover More

Comparing Strings

As your macro is processing information, there will doubtless be times that it will need to compare information in strings. ...

Discover More

Sorting a Range of Cells

When you sort data in a worksheet, you don't need to sort everything at once. You can sort just a portion of your data by ...

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 ExcelTips (menu)

Using Copy and Paste for Formatting

Want to copy formatting from one cell and paste it into another cell? It's easy to do if you use the Paste Special feature of ...

Discover More

Filling a Cell

One way you can format a cell is so that its contents are repeated over and over again for the entire width of the cell. It's ...

Discover More

Coloring Cells with Formulas

Easily seeing where all the formulas are in your worksheet can be handy. Here are some ideas on different ways you can color ...

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}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. 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 - 4?

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.