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: Pasting a Comment into Your Worksheet.

Pasting a Comment into Your Worksheet

by Allen Wyatt
(last updated July 19, 2014)


Excel allows you to add comments to individual cells in a worksheet. I often use comments to included explanatory concepts, or to store alternative information to what is in the worksheet. There have often been times when I've wanted to copy something from a comment and place it into a cell on the worksheet. These steps are helpful in this regard:

  1. Right-click the cell whose comment you want to copy and paste into a cell. You'll see a Context menu for the cell.
  2. Choose Edit Comment from the Context menu. Excel displays the comment, with the insertion point in the comment balloon.
  3. Select the text in the comment that you want to paste into a cell. Make sure you do not select the author text at the beginning of the comment or the paragraph mark at the end.
  4. Use Ctrl+X to cut the text or Ctrl+C to copy the text to the Clipboard.
  5. Select the cell into which you want to paste the comment.
  6. If you want to paste the comment text as a formula, press the equal sign.
  7. Press Ctrl+V to paste the information to the cell.

If you performed step 6 to indicate you were creating a formula, press Enter to finish the paste. Excel pastes your comment text into the cell. You can now delete the comment from the source cell (if desired) by right-clicking the cell and choosing Delete Comment.

Excel also provides a different way to "open" a comment so it can be edited—by pressing Shift+F2. This could be used to replace steps 1 and 2, above, by simply selecting the cell whose comment you want to copy and then pressing Shift+F2. The rest of the steps (3 through 7) could then be followed as noted.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10943) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Pasting a Comment into Your Worksheet.

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. ...


Using Classic PivotTable Layout as the Default

Are you attached to the classic PivotTable layout? Looking for a way to make that layout the default for new PivotTables? You ...

Discover More

Understanding Point Sizes

Points are the common unit of measure for typefaces in the printing industry. They are also used quite often in Word. Here's ...

Discover More

Using Subtotals and Totals

You can insert subtotals and totals in your worksheets by using either a formula or specialized tools. This tip explains how ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Inserting Workbook Comments Into a Cell

One of the pieces of information that Excel can maintain relative to a workbook is a set of comments of your choice. There is ...

Discover More

Finding and Replacing Text in Comments

Excel allows you to add comments to individual cells in your workbook. Unfortunately, Excel doesn't provide a way to search ...

Discover More

Copying Comments to Cells

Need to copy whatever is in a comment into a cell on your worksheet? If you have lots of comments, manually doing this can be ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


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. Maximum image size is 8Mpixels. 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 6 - 3?

2014-07-20 16:14:01

Thomas Papavasiliou

The task is relatively simple if you have a few cells to process. In case of large number of cells to process, a macro may be handy. In addition if the comments contain line feed characters you may need to split them to individual cells.
The following macro does the job.

Sub comments_to_cells()

'Macro written 10/12/2009 by Thomas Papavasiliou

'This macro, based on the selected single column area, selects the cells containing comments
'Transfers, as text, each comment to an empty to the right column, replacing [space] and line feed [chr$(10)] characters by #
'Finally splits the new column's contents, to cells using [#] as split character

'Getting data of used area and selection
With ActiveSheet.UsedRange
sr = .Row
sc = .Column
er = .Rows.Count + sr - 1
ec = .Columns.Count + sc - 1
End With

ad0 = Selection.Address
C = Range(ad0).Column

'Single column selection control
If Range(ad0).Columns.Count > 1 Then
msg = "Selection extends to more than one column. Macro ends"
ttl = "Large selection..."
MsgBox msg, vbOKOnly + vbCritical, ttl
Exit Sub
End If

'First part. Selecting cells containing comments and replacing space or chr(10) characters with #
On Error Resume Next

'No comment cell containing selection control
If Selection.SpecialCells(xlCellTypeComments).Count = 0 Then
msg = "Selection does not contain any cells with comment. Macro ends"
ttl = "No comment containing cells..."
MsgBox msg, vbOKOnly + vbCritical, ttl
Exit Sub
End If

On Error GoTo 0

Application.ScreenUpdating = False

For Each cell In Selection
ad1 = cell.Address
xtx = "" 'Initialization.
xtx = Range(ad1).Comment.Text 'Getting comment text
xtx = Replace(xtx, " ", "#") 'Replacing space with #
xtx = Replace(xtx, Chr$(10), "#") 'Replacing Chr$(10) with #
Range(ad1).Offset(0, ec - C + 2) = xtx 'Transferring processed text to an empty column

'Second part splitting to cells using [#] as separator character
Selection.Offset(0, ec - C + 2).Select
For Each cell In Selection
If IsDate(cell) Then
tmp = Format(cell, "dd/mmm/yyyy") & "#"
tmp = cell & "#"
End If
sp = 1 'sp = start point
i = 1
ep = 0 'ep = end point
Do While Len(tmp) > sp - 1
ep = Application.WorksheetFunction.SearchB("#", tmp, sp)
cell.Offset(0, i) = Mid(tmp, sp, ep - sp) 'Splitting to cells
i = i + 1
sp = ep + 1


Application.ScreenUpdating = True

End Sub

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

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.