Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. 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: Indenting Cell Contents.

Indenting Cell Contents

by Allen Wyatt
(last updated November 8, 2014)

3

Excel allows you to format the contents of a cell in a myriad of ways. One of the formatting options you can apply is to indent the contents of a cell by a certain amount. This is similar to indenting done in a word processor, such as Microsoft Word, except that the indenting is specified in a number of characters, not in a linear distance such as inches or points.

To set the indent to be used in a cell, follow these steps:

  1. Select the cells you want to format.
  2. Display the Home tab of the ribbon.
  3. Click the small icon at the lower-right of the Alignment group. Excel displays the Format Cells dialog box with the Alignment tab selected. (See Figure 1.)
  4. Figure 1. The Alignment tab of the Format Cells dialog box.

  5. In the Horizontal drop-down list, choose Left (Indent) or Right (Indent), depending on whether you want to indent from the left or right.
  6. Using the Indent control, specify the number of characters by which the cell contents should be indented from either the left or right side of the cell. You can pick any whole number between 0 and 15.
  7. Click on OK.

Note in step 4 that you can choose either a left or right indent. You cannot, however, indent from both the left and right, like you can with a word processor. You can only choose to indent from the left or the right.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6120) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Indenting Cell Contents.

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

Fixed-Width Settings when Converting Text to Columns

The Convert Text to Columns capabilities of Excel are very helpful when pulling apart information. When working with ...

Discover More

Centering a Table

Left-justified tables are great for many document designs, but you may want instead to center a table between the margins of ...

Discover More

Identifying the Last Cell Changed in a Worksheet

When someone changes a cell in a worksheet, Excel normally goes along its merry way of keeping everything up to date. It does ...

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

Changing Cell Colors

If you need to change the color with which a particular cell is filled, the easier method is to use the Fill Color tool, as ...

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

Determining Font Formatting

If you need to determine the font applied to a particular cell, you'll need to use a macro. This tip presents several ...

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 for this tip:

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 + 8?

2015-11-10 09:02:12

Marcus Lang

Thanks Glenn

I used your version and it was really easy to make it work.

Regards,


2015-06-15 05:50:13

Alan Pink

You say, "Note in step 4 that you can choose either a left or right indent. You cannot, however, indent from both the left and right, like you can with a word processor. You can only choose to indent from the left or the right."
Excel 2010 has an option, Distributed (Indent) that applies the same indent to left and right simultaneously.


2014-11-11 09:02:37

Glenn Case

Okay, I'm continually amazed at what I don't know about Excel even after several years of working with it. I have always just added spaces to indent, which is not efficient, and which creates "untrimmed" text. Thanks for the tip!

I have used this to create a quick macro so I can assign a button to my QAT to do this with a single click. Here it is:

Sub Indent()
With Selection
.IndentLevel = 2
End With
End Sub

Be aware that if you do this with a macro, you can't undo it with Undo. You can, however, use an UnIndent macro to do that:

Sub UnIndent()
With Selection
.IndentLevel = 0
End With
End Sub


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.

Links and Sharing
Share