如何在Excel中轻松提取注释内容?
在某些情况下,我们需要将单元格的注释内容提取到单元格以更好地查看或分析,如下面的屏幕截图所示。 但是在Excel中,没有内置函数可以对此有所帮助。 但是,这里有一些技巧可以帮助您快速轻松地解决此问题。
使用定义的函数提取注释内容
列出活动工作表或工作簿的所有评论内容 Kutools for Excel
使用定义的函数提取注释内容
惊人的! 在 Excel 中使用高效的选项卡,如 Chrome、Firefox 和 Safari!
每天节省50%的时间,并减少数千次鼠标单击!
在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
3. Save the code and go back to the sheet you want to extract comment contents, type =getComment(B2) in a cell which will place the comment content at, and press Enter key. Then you can see the comment has been displayed in the cell. You can drag fill handle down to extract comments as you need.
List all comment contents of active sheet or workbook with Kutools for Excel
If you want to list all comment contents of the active sheet or current workbook, the Defined Function is not convenience. But Kutools for Excel’s Create Comment List function can quickly and easily handle this job.
Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.
Free Downloadfree full-featured in 30 days
After free installing Kutools for Excel, please do as below:
1. click Kutools > More (in the Editing group) > Create Comment List. See screenshot:
2. In the Create Comment List dialog, select the scope you want to list the comment, Active sheet or All sheets, then choose to place the comments in a new workbook or a new sheet of current workbook.
3. click Create. Now all comments have been listed one by one in a sheet.
Demo
Best Office Productivity Tools
Transform Hours into Minutes with Kutools for Excel!
Ready to supercharge your Excel tasks? Harness the power of Kutools for Excel - your ultimate time-saving tool. Streamline intricate tasks and glide through your data like a pro. Experience Excel at lightning speed!
Why You Need Kutools for Excel
🛠️ Over 300 Powerful Features: Kutools is packed with more than 300 advanced features, simplifying your work in over 1500 scenarios.
📈 Superior Data Processing: Merge cells, remove duplicates, and perform advanced data conversions – all without breaking a sweat!
⏱️ Efficient Batch Operations: Why put in extra effort when you can work smart? Import, export, com
bine, and tweak data in bulk with ease.
📊 Customizable Charts and Reports: Access a broad variety of additional charts and generate insightful reports that tell a story.
🗄️ Powerful Navigation Pane: Gain an advantage with the robust Column Manager, Worksheet Manager, and Custom Favorites.
📝 Seven Types of Drop-down Lists: Make data entry a breeze with drop-down lists of various features and types.
🎓 User-Friendly: A breeze for beginners and a powerful tool for experts.
Download Now and Soar Through Time with Excel!
Read More... Free Download... Purchase...
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!
Read More... Free Download... Purchase...