Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to convert comments to cell contents in Excel?

Author Xiaoyang Last modified

In many situations, you may have a worksheet filled with important information stored within cell comments (or "Notes" in newer versions of Excel). However, comments are not always directly visible or printable in a standard worksheet printout, and managing or extracting comment data for sharing, archiving, or processing can be inconvenient. To address this, you might need to transfer or convert all comments into the actual contents of their respective cells. This ensures information becomes directly accessible, viewable, and printable along with other cell data. If you're searching for effective ways to convert comments to cell contents in Excel, several methods are available, each suited to different levels of Excel proficiency and requirements.

Convert comments to cell contents with User Defined function

Convert comments to cell contents with VBA code

Convert comments to cell contents with Kutools for Excel


arrow blue right bubble Convert comments to cell contents with User Defined function

One practical way to extract comments into cells is to use Excel’s User-Defined Function (UDF). This approach is ideal for users with basic VBA knowledge who prefer not to run macros that directly alter worksheet content, as it offers greater control and flexibility. The UDF returns the comment’s text to any cell you choose without overwriting the original data.

To convert comments to cell contents using this method, you'll need to create the UDF first, then apply it as a formula. Please follow these steps:

1. Click the Developer > Visual Basic to access the Microsoft Visual Basic for Applications window.  In the VBA window, click Insert > Module, and paste the following function into the new Module:

Function GetComments(pRng As Range) As String
'Updateby20140509
If Not pRng.Comment Is Nothing Then
    GetComments = pRng.Comment.Text
End If
End Function

2. Save your VBA Project using Ctrl + S or via the menu. If prompted, save your workbook as an Excel Macro-Enabled Workbook (*.xlsm) to ensure the UDF will work properly.

3. Now, in any empty cell where you want to display the comment text, enter the formula =GetComments(A1) (replace A1 with the actual cell reference whose comment you want to extract). See screenshot:

doc-comments-to-cells1

4. Press Enter. The cell will display the comment from cell A1 . To extract comments from an entire range, drag the fill handle (small square in the lower right corner of the cell) down or across to apply the formula to other cells referencing the corresponding cells in your dataset. All comments will be converted to cell contents accordingly. See screenshot:

doc-comments-to-cells2

When using this method, note that if a cell does not contain a comment, the formula will typically return a blank result for that cell. This approach is non-destructive; original cell values and comments remain intact. It is best suited for situations where you need to display, review, or print comment contents alongside actual cell data without altering the source cells themselves.

If you want to remove the formulas and retain only the extracted comment text, select and copy the output range, then right-click and choose Paste Values.


arrow blue right bubble Convert comments to cell contents with VBA code

For users who need to perform the conversion automatically or for a large batch of cells, a short VBA macro can efficiently copy all comments into their corresponding cells as plain text. This method is direct and fully automated, but be aware that it will overwrite any existing cell content in the target cells, so always back up your data first.

1. First, select the range where you want to convert comments to cell contents. Selecting a smaller range reduces the risk of accidental data loss.

2. Go to the Developer tab and choose Visual Basic to open the Microsoft Visual Basic for Applications window. Then click Insert > Module, and copy the following code into the Module window:

Sub CommentToCell()
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Rng.Value = Rng.NoteText
Next
End Sub

3. After pasting the code, click the vba code run button Run button in the VBA editor (or press F5) to execute the macro. The code will typically prompt you to select the range—ensure you select the correct cells. Click OK to proceed, and all existing comments in the selection will be copied into their corresponding cells, replacing the cell’s contents. The following screenshot illustrates the before-and-after result:

doc-comments-to-cells-7

doc-comments-to-cells3 arrow doc-comments-to-cells4
Note: To avoid accidental data loss, consider working on a copy of your data.

This VBA macro solution is best for users comfortable running macros and needing to fully automate the comment-to-content transfer process. The main advantage is speed and the ability to batch process large areas, but as it overwrites existing data, always use caution and back up important files before running the macro.


arrow blue right bubble Convert comments to cell contents with Kutools for Excel

The Convert Comment and Cell tool in Kutools for Excel provides a user-friendly and efficient way to quickly move comment text into cell contents. This utility not only saves significant time but also minimizes manual operations, reducing the risk of errors during the process.

Kutools for Excel : with more than 300 practical Excel add-ins, free to try with no limitation for 30 days. Get it Now .

After installing Kutools for Excel, you can follow these simple steps to convert comments to cell values:

1. Highlight the cell range containing the comments you wish to convert to actual cell content.

2. On the Excel ribbon, click Kutools > More > Convert Comment and Cell.

3. In the Convert Comment and Cell dialog box, choose Convert comments into content of cells. This operation will transfer each cell's comment/note directly into the cell value itself. See the screenshot below:

doc-comments-to-cells-6

4. Click OK. Instantly, all chosen cells have their comments placed into the respective cell's content, and the worksheet is updated accordingly.

This approach is particularly beneficial for users who prefer a graphical interface and minimal manual effort. It is fast, reliable, and ideal for users who do not wish to use VBA or Excel formulas. For more comprehensive instructions about the Convert Comment and Cell tool, visit the Convert Comment and Cell feature description page.

If you encounter issues where cell content is being overwritten, it's advisable to back up your worksheet prior to conversion, or work on a duplicate sheet. Kutools also provides options for converting comments back and forth for flexible management.


Tips, troubleshooting, and summary suggestions

When choosing a solution, consider the trade-offs: using VBA is very flexible but requires some technical skill and data backup precautions. Kutools offers a no-code and efficient route, ideal for regular users who value simplicity. User Defined Functions allow selective extraction without altering original cells but require formula application and may not handle new-style threaded comments.

Common troubleshooting points include:

  • If your macro or formula doesn’t return the expected comment content, check if you’re working with threaded "Comments" (not "Notes")—many solutions only work with classic notes.
  • If using Office 365 or Excel 2019+, right-click a cell and select "Show/Hide Notes" to confirm you've got the correct comment type.
  • Always save your file before applying macros or batch conversions, to prevent accidental data loss.
  • After extracting values, if you wish to keep the worksheet tidy, you can remove comments by selecting the cells, right-clicking, and choosing "Delete Comment".

Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in