Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Adjusting Cell Margins for More White Space.

Adjusting Cell Margins for More White Space

by Allen Wyatt
(last updated November 7, 2015)

2

Serena asked if there is a way to adjust the text margins with a cell so that there is more white space within a cell. The answer is that there is no intrinsic Excel command to add more space, as you can do in Word tables or with the CELLPADDING attribute in an HTML table. However, there is a way you can accomplish the desired goal, although it is somewhat more manual in nature. Follow these general steps:

  1. Select the cell you want to adjust.
  2. Display the Home tab of the ribbon.
  3. Click the small icon at the bottom-right of the Alignment group. Excel displays the Format Cells dialog box.
  4. Make sure the Alignment tab is displayed. (See Figure 1.)
  5. Figure 1. The Alignment tab of the Format Cells dialog box.

  6. Using the Horizontal drop-down list, choose Center.
  7. Using the Vertical drop-down list, choose Center.
  8. Click on OK.
  9. Adjust your column width to leave the desired white space on both sides of the cell contents.
  10. Adjust your row height to leave the desired white space above and below the cell contents.

The drawback to this approach, of course, is that it affects the width of not just one cell, but of the entire column and row. In addition, your numbers will not line up properly—on the decimal point—if you choose to center horizontally. The way around this last issue is to still center the contents horizontally, but use a custom number format for the cells, as follows:

[???,??0.00;-??,??0.00]

The question marks in the format forces Excel to leave space as if there were a digit, even if there isn't.

You cannot change the vertical white space without adjusting row height. There is, however, one thing you can try if you want to change the horizontal white space: Adjust the indent value used in a cell. All you need to do is display the Format Cells dialog box and set the indent on the Alignment tab. You can adjust either the left or right indent (check out the Horizontal drop-down list), but not both.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11498) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Adjusting Cell Margins for More White Space.

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

Moving the Insertion Point to the Beginning of a Line

If you need to move the insertion point within your macro, then you'll want to note the HomeKey method, described in this ...

Discover More

Calculating TV Time

In some industries it is necessary to work with time resolutions of less than a second. If you need to keep track of such ...

Discover More

Creating Scenarios

Excel allows you to create different scenarios for the data in your worksheet. These can be saved and managed using the ...

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 (ribbon)

Select One Cell and Make Another Cell Bold

Excel provides a number of different ways you can apply formatting to a cell based upon various dynamic conditions. One ...

Discover More

Displaying Negative Times

Excel allows you to perform math using times as operands. If you subtract a later time from an earlier time, you should ...

Discover More

Replacing Cell Formats

Need to replace the formats applied to some cells with a different format? You can use Excel's Find and Replace tool to ...

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 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 two less than 4?

2019-09-03 14:43:12

Roy

Another way to add a precisely chosen (since you choose it, not Excel) amount of white space is to add a leading and trailing character, chosen by you, to a custom format in the "text" portion of the format.

There are up to four regions in a formatting code one can use. To set up 2 decimals, red and an en dash as a negative sign, showing zeros as just a 0 character, and text with a single space before and after you would use:

#,##0.00;[Red]–#,##0.00;0; @ ....... I put the ... characters in to illustrate the space at the end of the code

And advantage is you chose the width. A bigger one is that indenting done by Excel, as well as being limited to one side or the other, is BIG. Indent "1" and it is 2-3 characters wide of an indent, not 1 character. Odd, since Excel insists all width work should be in character widths... but there it is. So indented as above gives you the first example below while indenting via... well, indenting, gives you the second:

horse
horse

Not really fine control...

You can also specify different amounts on each side. How often one ahs to worry about BOTH sides, I don't know, but 800,000,000 users, some might need to.


2015-11-09 01:26:11

N. Kadkhodaei

Hi Dear
In excel 2007 cell alignment indent adjustment works horizontally for both right and left sides.
The other way is to leave a blank cell to sides we like to have spaces. we can format cell borders to seem as a single cell with indented margins.
Thank You.


This Site

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