Categories
Excel

Cell Comments

Comments in Excel are small notes or annotations that you can add to a cell to provide additional information or context. Comments are useful for documenting your work, explaining formulas or functions, or giving feedback to others.

Cell comments enable you to place a sticky note on any specified cell in a worksheet. Although many people use cell comments, many don’t know that cell comments are customizable.

  1. Insert, Edit, or Remove Cell Comment
  2. Format Comment
  3. Change Comment Shape
  4. Apply Shadow Effect on Comment Shape
  5. Insert Picture in a Comment
  6. Extract Comment Text with a Function

Insert, Edit, or Remove Comments

To insert a comment, follow one of these steps:

  • Right-click on the cell where you want to add a comment and choose Insert Comment from the context menu.
  • Select the cell where you want to add a comment and go to the Review tab and click on New Comment in the Comments group.

A small red triangle will appear in the top-right corner of the cell, indicating that it has a comment. A comment box will also pop up where you can type your comment.

To edit or delete a comment, follow one of these steps:

  • Right-click on the cell and choose Edit Comment or Delete Comment from the menu.
  • Select the cell and go to the Review tab and click on Edit Comment or Delete in the Comments group.

To show or hide comments, follow one of these steps:

  • To show or hide all comments in the worksheet, go to the Review tab and click on Show All Comments in the Comments group.
  • To show or hide the comment in the active cell, go to the Review tab and click on Show/Hide Comment in the Comments group.
  • Right-click on the cell and choose Show/Hide Comments from the menu.

Format Comment

  1. Right-click on the cell and choose Show/Hide Comments from the menu.
  2. Right-click the border of the text box and click Format Comment from the menu to open the Format Comment dialog box.

You can use the Format Comment dialog box to change various format options for the comment you have selected, such as the font, Color, Border, etc.

To change the comment text size, font style, font color etc.

  • Click Font tab and select your desired font size from the Size box.
  • Click Color drop-down to change the text color.
  • You can also change the font, font style, and many other settings from this tab.

To change the fill and border color for the comment’s text box:

  • Click the Colors and Lines tab in the Format Comment dialog box.
  • In the Fill section, click the Color option and choose the color you want to use for the background of the comment box.
  • In the Line section, click the Color option and choose the color you want to use for the border of the comment box.

Change the Shape of the Comment

To change a Comment’s shape you need the Change Shape command. The Change Shape command allows you to change the shape of an existing object, such as a rectangle, a circle, or a star.

To make this command available on the ribbon, you need to customize the ribbon. Here are the steps to do so:

  1. Right-click on any part of the ribbon and select Customize the Ribbon.
  2. In the Customize the Ribbon window, select Home under the Main Tabs list on the right.
  3. Click on the New Group button at the bottom of the window to create a new group under the Home tab.
  4. Rename the new group as Drawing Tools or any name you prefer.
  5. In the Choose commands from list on the left, select All Commands.
  6. Scroll down and find the Change Shape command and select it.
  7. Click on the Add >> button to add the command to the new group.
  8. Click on OK to close the window and save your changes.

Now you should see the Change Shape command on the ribbon under the Home tab in the new group. You can use it to change the shape of any object (including comments) you have inserted or drawn in your worksheet.

Now, follow these steps to change the comment shape:

  1. Right-click on the cell and choose Edit Comment from the menu.
  2. Left-click the outside border of the cell comment so that you are no longer in Edit mode.
  3. With the comment box selected, click Change Shape that we recently added in the Home tab.
  4. You will be presented with a list of options including Basic Shapes, Block Arrow, Flow Chart, Stars and Banners, and Callouts.
  5. Choose a shape, and the cell comment will change to the shape selected, as shown in the figure.
A dramatically shaped cell comment

Apply Shadow Effect on a Comment

You can take this a step further by applying a shadow effect to the comment to give it a more lifelike and three-dimensional look.

To apply the shadow effect, you need the Shadow Effects command. This command allows you to apply the various type of shadows on a shape of an existing object.

To make this command available on the ribbon, you need to customize the ribbon again. Here are the steps to do so:

  1. Right-click on any part of the ribbon and select Customize the Ribbon.
  2. In the Customize the Ribbon window, select Home under the Main Tabs list on the right.
  3. Select the Drawing Tools group.
  4. In the Choose commands from list on the left, select All Commands.
  5. Scroll down and find the Shadow Effects command and select it.
  6. Click on the Add >> button to add the command to the new group.
  7. Click on OK to close the window and save your changes.

Now you should see the Shadow Effects command on the ribbon under the Home tab in the new group. Now, follow these steps to apply shadow on the comment:

  1. Right-click on the cell and choose Edit Comment from the menu.
  2. Left-click the outside border of the cell comment so that you are no longer in Edit mode.
  3. With the comment box selected, click Shadow Effects that we recently added in the Home tab.
  4. You will be presented with a list of options including Drop Shadow, Perspective Shadow, and Additional Shadow Styles..
  5. Choose a shadow, and the shadow will apply to the comment’s shape, as shown in the figure.

Insert Picture in a Comment

Another interesting thing you can do with cell comments is use them to display pictures without impeding on any associated data. For instance, you could insert a picture of a chart into a cell comment to better illustrate the data in the chart without having to show the chart all the time.

  1. Right-click on the cell and choose Edit Comment from the menu.
  2. Right-click the border of the text box and click Format Comment from the menu to open the Format Comment dialog box.
  3. Click Colors and Lines tab from the Format Comment dialog box.
  4. From the Fill section, click the Color drop-down.
  5. Select Fill Effects to open the Fill Effects dialog box.
  6. Click the Picture tab and click the Select Picture button to insert the picture that you want to display in the cell comment.
  7. Click OK twice to close the dialog boxes.
Chart Image in Excel Comment

Extract Comment Text with User-Defined Function

One last thing you can do to cell comments is extract the text that was placed into a cell comment and have it appear in a cell. To do this, you need to place a simple custom function into a standard module. Press Alt+F11 (or Option+F11), then select Insert » Module and enter the following code:

Function GetCommentText(rCommentCell As Range)
Dim strGotIt As String
On Error Resume Next
 strGotIt = WorksheetFunction.Clean(rCommentCell.Comment.Text)
 GetCommentText = strGotIt
On Error GoTo 0
End Function

Close the code window and return to Excel. Now, in any cell, enter the following formula:

=GetCommentText(A1)

Where A1 has a cell comment in it. The comment text will appear in the cell.


Understanding Workbooks and Worksheets: