23

Is there a way to add padding to cells in Excel 2010?

The spreadsheet I'm using has cells in one column with varying row heights. I don't want to center the text, I just want it padded slightly from the left side.

5

Note: I'm on Excel 2007, but I would be surprised if this doesn't work.

Select the cells, right click, select Format Cells.

Move to the Alignment tab, set the Horizontal value to Left (Indent) and adjust the Indent value as desired.

There should be two alignment buttons on the ribbon as well (that increase or decrease the indent), they look like this:

Excel 2007 ribbon; highlighted decrease/increase indent buttons

  • 1
    @SethP. - See ingenious solution (hide dummy column with fat borders): superuser.com/questions/317672/… – aparente001 Sep 19 '15 at 22:40
  • 2
    This is not a solution. There is no way to add padding to a cell in Excel 2010. You can only simulate it, and only in the horizontal plane, and only on the left hand side. – Tim Ogilvy Feb 26 '17 at 23:58
82

That's an 'indent'. Cell padding is exactly the same thing as page margins, but at the cell level. Excel does not currently support this feature although it is supported in Word tables. Go figure.

  • 10
    I don't know why it was down-voted, he is right. – void May 9 '12 at 23:16
  • 2
    Years later, 2013 is out and still no cell margin to be found. Les' answer is indeed the correct one. – BlueCacti Dec 21 '14 at 20:26
13

You can cheat and apply a border to all 4 sides of the cell that is the same color as the cell background. Do this in the Home tab - Format (in the cells group) - Borders, or select the cells and right click, then choose "format cells" at the bottom of the dropdown.

Make sure you click the border icons on the right AFTER you set the border color and width. Even if they are already highlighted, they do not apply the color unless they are clicked again after you select them and set the border color.

  • 1
    Options for border width seem to be limited. The thick option in Excel 2010 fails to satisfy. – Smandoli Dec 28 '15 at 16:42
  • Also if you already have borders you need/like, this is destructive. – BaseZen May 23 '17 at 20:23
5
  1. Select the cell range and increase the fonts size several points.
  2. Auto fit the column width and row height.
  3. Set the font size back to the original size.

This takes a few steps, but it gets the look I want without the padding feature. I also like to center the type vertically once this is done.

1

I just press Alt+Enter before the first row and after last one (you must be in the cell by double clicking it).

Of course it is pain if you work dozens of data, but if you fill the rows from zero it does the trick.

1

This combines a couple ways of using formatting to simulate padding.

The Accounting comma-button , format applies a space to the beginning and end of the cell value. This is actually putting a space for positive numbers and parentheses for negative numbers, but it adds spaces for text. Typically I first set the entire sheet to this format, then change individual columns or cells as needed, to "undo" the accounting formatting.

If you only need space to the right, create a custom format based on an existing format, by adding a space to the end of the format string.

e.g., a Date column tends to put the date right up against the cell edge to the right. I changed the format from "yyyy-mm-dd" to "yyyy-mm-dd " (there's a space on the end, and no quotes - that's just to see the space in this post).

I also put a leading space on the date format " yyyy-mm-dd ", and it worked for dates. But it didn't work for text, such as the column heading. I could only get text to pad by using the built-in Accounting comma , button. I'm not sure what's going on. I tried various combinations of the accounting-style _(, but had no success other than using the comma button

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.