跳到主要內容

如何在Excel中輕鬆提取註釋內容?

在某些情況下,我們需要將單元格的註釋內容提取到單元格以更好地查看或分析,如下面的屏幕截圖所示。 但是在Excel中,沒有內置函數可以對此有所幫助。 但是,這裡有一些技巧可以幫助您快速輕鬆地解決此問題。
doc提取評論內容1

使用定義的函數提取註釋內容

使用Kutools for Excel列出活動工作表或工作簿的所有註釋內容好主意3


使用定義的函數提取註釋內容

在Excel中,除“定義的函數”外,沒有公式可以提取註釋內容。

1。 按 Alt + F11鍵 啟用 Microsoft Visual Basic for Applications 窗口。

2。 點擊 插入 > 模塊,將代碼複製並粘貼到空白的新模塊中。

代碼:提取註釋

 Function getComment(xCell As Range) As String
'UpdatebyExtendoffice20180330
On Error Resume Next
getComment = xCell.Comment.Text
End Function

doc提取評論內容2

3.儲存代碼並返回要提取評論內容的工作表,輸入 =獲取評論(B2)在一個儲存格中,該儲存格將放置評論內容,然後按 Enter 鑰匙。 然後你可以看到評論已經顯示在儲存格中。 您可以向下拖曳填充手柄以根據需要提取註釋。

doc提取評論內容3 doc箭頭向右 doc提取評論內容4

使用Kutools for Excel列出活動工作表或工作簿的所有註釋內容

如果你想列出目前工作表或目前工作簿的所有註解內容,定義函數並不方便。 但 Kutools for ExcelCreate Comment List 函數可以快速輕鬆地處理這項工作。

Excel的Kutools, 與以上 300 方便的功能,使您的工作更加輕鬆。 

免費安裝 Kutools for Excel,請執行以下操作:

1。 單擊 庫工具 > 更多 (在編輯群組中)> 創建評論列表。 看截圖:
doc提取評論內容5

2。 在裡面 Create Comment List 在對話方塊中,選擇要列出註解的範圍、活動工作表或所有工作表,然後選擇將註解放置在新工作簿或目前工作簿的新工作表中。
doc提取評論內容6

3。 單擊 Create。 現在所有的評論都被一一列出在一張紙上。
doc提取評論內容7

最佳辦公生產力工具

熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

kte選項卡201905


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I'm getting ambiguous name detected: getComment error.

This usually works, don't understand why it doesn't now.

Any idea?
This comment was minimized by the moderator on the site
how would we modify if we are pointing to a cell on another sheet?  TIA
This comment was minimized by the moderator on the site
Sorry, Kelly, I would like to help you if I know. Probably, you can place this question in our forum https://www.extendoffice.com/forum/excel.html, maybe someone know the solution.
This comment was minimized by the moderator on the site
So informative things are provided here, I really happy to read this post, I was just imagine about it and you provided me the correct information. I really need this for my site.
This comment was minimized by the moderator on the site
Thank you! This really helps.
This comment was minimized by the moderator on the site
Thanks! Worked like a charm!
This comment was minimized by the moderator on the site
Thank you! Very helpful!
This comment was minimized by the moderator on the site
Thanks a lot! It was really helpful!
This comment was minimized by the moderator on the site
Thank you a lot! Helped me much. It could be hours of manual work :D
This comment was minimized by the moderator on the site
When I use this tool for the newer threaded comments feature in excel, it doesn't recognize any "comments" as "comments." It only shows "notes." Is there a workaround for this?
This comment was minimized by the moderator on the site
Hey,

If you change the fourth line in the Macro to "getComment = xCell.CommentThreaded.Text", it will work.
This comment was minimized by the moderator on the site
I'm not the original commenter but this is exactly the fix I was looking for. Thanks!!
This comment was minimized by the moderator on the site
My goodness, thank you i've been trying to figure this out and this was the missing piece.
This comment was minimized by the moderator on the site
Thank you so much for sharing this tips. Really helpful & it works easily.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations