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

Setting Vertical Alignment

by Allen Wyatt
(last updated September 18, 2015)

1

Excel provides several different ways you can align information from top to bottom (vertically) within a cell. You set the alignment by first selecting the cells you want to format and then displaying the Alignment tab of the Format Cells dialog box. (See Figure 1.) (To display the dialog box, choose Cells from the Format menu.)

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

On the Alignment tab, use the Vertical drop-down list to make your selection. There are four different alignment options available in Excel 97 and Excel 2000, and five in later versions of Excel:

  • Top. The information in the cell is situated such that the top line of text appears at the top of the cell.
  • Center. Information is centered half-way between the top and bottom borders of the cell.
  • Bottom. This is the default vertical alignment. Information is aligned at the bottom of the cell.
  • Justify. Text is spread evenly throughout the cell. The information within the cell is wrapped within the column (if necessary), and the row height is adjusted so that all lines fit within the cell and so all information reaches both the top and bottom borders of the cell. Column width is not affected at all.
  • Distributed. This option is available in Excel 2002 or later versions. When selected, text is spread evenly between the top of the cell and the bottom. Effectively, blank space is placed between each line so that the complete cell is filled.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2124) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Setting Vertical Alignment.

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

Determining the Number of Pages in Your Document

If your macro needs to know how many pages are in your document, you can use the Information method to get the desired info. ...

Discover More

Adding the Set Print Area Tool

Spend a lot of time defining print areas in your workbooks? You might benefit by adding a Set Print Area tool that makes ...

Discover More

Margin Notes in Word

Some types of documents rely upon margin notes to the left or right of your main text. Getting these to appear in Word can be ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (menu)

Adjusting Row Height when Wrapping Text

If you have some cells merged in a worksheet, and you wrap text within that merged cell, Excel won't automatically resize the ...

Discover More

When is Currency Not Currency?

One of the tools available for formatting cells is one called "Currency." This can be misleading, as it doesn't really apply ...

Discover More

Shortcut to Merge Cells

Need to merge a bunch of cells together on a regular basis? You'll love the two macros in this tip which can make short work ...

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. 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 7 + 5?

2012-10-01 05:28:36

web solusi

Dear,

Thank you for information that you put on this site.
But, how to make padding cells on the Excel like padding cells style on the web.
Example : margin-top: 20px, margin-rignt:10 px, etc.

Please Help me.

Regards
Web Solusi
http://it-check.blogspot.com


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.