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


Including a Printer's Name in a Footer

If you can produce output on a number of different printers, you may want Word to indicate on your printouts which ...

Discover More

Endnotes in a Separate Document

When you add endnotes to a document they are normally positioned (as one would expect) at the end of the document. You ...

Discover More

Converting Mainframe Date Formats

Different industries and different computer systems specify dates in all sorts of strange ways. If you need to convert a ...

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)

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

Keyboard Shortcut for Comments

Adding comments to the cells in your worksheets can help to document different aspects of that worksheet. Adding a ...

Discover More

Formatting Text in Comment Boxes

Want to make your worksheet comments appear a certain way? It's easy to do using techniques you already are familiar with.

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 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 two minus 1?

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.