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 February 29, 2020)
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

Getting Rid of All Hyperlinks

Need to get rid of all the hyperlinks in a worksheet? It's easy when you use this single-line macro.

Discover More

Counting Consecutive Negative Numbers

If you have a range of values that can be either positive or negative, you might wonder how to determine the largest ...

Discover More

Creating Special, Compound Characters

If you have a need for special characters (particularly in technical documents), Word provides a couple of ways you can ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Printing Formatted Comments

When you print your worksheet, you may want Excel to include your comments or notes as they appear on the screen. Here's ...

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

Adding Comments to Protected Worksheets

When you protect a worksheet, Excel stops users from editing or otherwise making changes to the data in the worksheet. 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 six minus 4?

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.