Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. 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: Formatting Text in Comment Boxes.

Formatting Text in Comment Boxes

Written by Allen Wyatt (last updated October 7, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


1

Adding comments to the various cells in a worksheet can be quite helpful, particularly when it comes to documenting the organization and content of your worksheet. As you start adding more and more information as comments, you may wonder if there is a way to easily format the information in a comment box.

Text in a comment box can be formatted in much the same way as you format text in a text box: select the text, then choose one of the formatting options available from the ribbon or the Context menu. You can easily change typefaces, font sizes, and character attributes, as desired.

If you want to format your text so that various elements line up with each other, your formatting options are a bit more limited. One good approach is to make sure the text you want aligned is formatted using a monospace typeface (such as Courier or Courier New), and then insert spaces in your data to align information on different lines. (Inserting spaces to align text on multiple lines can be tedious, so you may want to actually align the text in a text editor, such as Notepad.)

If your data doesn't have many columns in it, you can also align text by using Ctrl+Tab between columns. This doesn't actually add the tab character to your data; instead it inserts four or five spaces into the text, thereby helping to align data between rows. The number of spaces added is whatever is necessary to move the insertion point right by some multiple of eight characters. (The "column spacing" cannot be changed in Excel.) You can easily verify if you are using a monospace font by how this lines up the columns in your text.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9311) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Formatting Text in Comment Boxes.

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

Setting Line Spacing in the Equation Editor

The Equation Editor can be a great boon when you need to include complex mathematical equations in your document. The ...

Discover More

Understanding the Organizer

The Organizer is a great tool for, well, organizing the information stored in your templates. This tip introduces the ...

Discover More

Tab Key Won't Move from Cell to Cell in Locked Worksheet

Normally the Tab key can be used to move from one cell to another in Excel. If this cell movement doesn't work for you, ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Locking the Size of Pictures in Comments

Excel allows you to place pictures inside of comments. If you do this, you may have experienced a situation where the ...

Discover More

Placing Formula Results in a Comment

Excel won't allow you to directly or automatically insert the results of a formula into a cell's comment. You can, ...

Discover More

Comments Don't Appear when Cell is Pointed To

One way that you can view comments in a worksheet is to have them appear when you hover the mouse pointer over a cell. If ...

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}] (all 7 characters, in the sequence shown) 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 three minus 2?

2020-03-06 11:26:26

Bob Williams

Formatting cell comments -- I like to have my own look and that applies to comments also. I have developed a macro that makes all comments on a worksheet look the same. Optionally, the workbook can have a set of named ranges that specify the parameters for the comments. Those specify shape, font, font size, font color, line weight (around the shape), and the fill color.
Some tedious research was done to determine equations that describe how the size of the comment shape should vary with the length of the comment. Here's a sample of a comment so formatted: (see Figure 1 below)
I would be happy to provide the code if you're interested. It's about 600 lines, which some programmer better than I could no doubt make more elegant! I would be happy to have others take advantage of my work.
Bob Williams

Figure 1. 


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.