跳到主要内容

如何在Excel中轻松提取注释内容?

在某些情况下,我们需要将单元格的注释内容提取到单元格以更好地查看或分析,如下面的屏幕截图所示。 但是在Excel中,没有内置函数可以对此有所帮助。 但是,这里有一些技巧可以帮助您快速轻松地解决此问题。
doc提取评论内容1

使用定义的函数提取注释内容

使用 Kutools for Excel 列出活动工作表或工作簿的所有评论内容好主意3


使用定义的函数提取注释内容

在Excel中,除“定义的函数”外,没有公式可以提取注释内容。

1。 按 Alt + F11键 启用 Microsoft Visual Basic应用程序 窗口。

2。 点击 插页 > 模块,将代码复制并粘贴到空白的新模块中。

代码:提取注释

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

doc提取评论内容2

3.保存代码,然后返回到要提取注释内容的工作表,键入 = getComment(B2)放置在注释内容所在的单元格中,然后按 输入 键。 然后,您可以看到注释已显示在单元格中。 您可以向下拖动填充手柄以提取注释。

doc提取评论内容3 doc箭头向右 doc提取评论内容4

使用 Kutools for Excel 列出活动工作表或工作簿的所有评论内容

如果要列出活动工作表或当前工作簿的所有注释内容,则“定义的功能”不方便。 但 Kutools for ExcelCreate Comment List 功能可以快速轻松地完成这项工作。

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

免费安装 Kutools for Excel,请执行以下操作:

1。 单击 库工具 > 更多 (在“编辑”组中)> 创建评论列表。 看截图:
doc提取评论内容5

2.在 Create Comment List 对话框中,选择要列出注释,活动工作表或所有工作表的范围,然后选择将注释放置在新工作簿或当前工作簿的新工作表中。
doc提取评论内容6

3。 单击 Create。 现在,所有评论已在表格中逐一列出。
doc提取评论内容7

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 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