excel批量提取批注与删除批注
时间:2023-02-09 09:54:55
如下样表:
A列很多项目都已批注的形式注明了完成情况,现需要将完成情况的批注内容提取到B列备注中。
给大家一种自定义函数提取批注的方法。
实现过程
1、,打开VBA窗口,插入模块:
2、在模块中输入以下代码:
Function pz(rng As Range)
Application.Volatile
On Error GoTo err
pz = rng.Comment.Text
Exit Function
err:
pz = “”
End Function
即可实现自定义函数pz,可以提取批注。
3、保存为启用宏的工作簿,在B2单元格输入公式=pz(A2),确定,公式向下填充,即可批量提取批注。
保存与使用过程如下动图:
批量删除批注
如果大量数据中,存在不规律分布的批注,可用【查找】-【批注】功能定位到有批注的单元格,右键删除批注。
如下动图:
标签:Excel函数,excel函数公式,excel表格制作,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel中not函数的操作使用
2022-07-21 14:19:17
Win8.1系统打开必应天气新版本无法更新的解决方
2023-08-19 19:55:55
![](https://img.aspxhome.com/file/2023/3/a301001_0s.jpg)
怎么在Excel2003菜单栏自定义一个选项卡
2023-05-02 22:23:13
![](https://img.aspxhome.com/file/2023/5/36165_0s.jpg)
Win10系统使用金e顺的操作方法
2023-06-20 22:05:06
![](https://img.aspxhome.com/file/2023/5/a314731_0s.jpg)
Win7运行游戏失败提示错误0xc00000d的解决方法
2023-07-13 12:12:26
![](https://img.aspxhome.com/file/2023/27/a233104_0s.jpg)
Steam如何隐身登录 Steam隐身登录教程
2023-11-07 18:34:44
![](https://img.aspxhome.com/file/2023/8/a338573_0s.png)
Win10 20H2系统怎样彻底关闭安全中心?
2023-12-13 12:57:22
![](https://img.aspxhome.com/file/2023/4/51084_0s.jpg)
Safari 浏览器的几个雕虫小技
2022-08-25 05:50:32
hkcmd.exe是什么进程? hkcmd有什么作用
2022-08-16 12:47:39
![](https://img.aspxhome.com/file/2023/5/a319899_0s.jpg)
WPS的删除空段功能,简单直接
2022-10-29 12:36:56
ppt怎么制作毛玻璃效果的圆环图表?
2023-06-10 00:23:34
![](https://img.aspxhome.com/file/2023/10/a345693_0s.jpg )
Win7浏览器兼容性怎样设置?
2022-06-12 10:29:27
![](https://img.aspxhome.com/file/2023/4/a307334_0s.jpg)
excel自动求和的方法
2023-04-13 15:19:57
win10怎么把字体调大
2023-08-23 06:55:04
![](https://img.aspxhome.com/file/2023/3/a298216_0s.png)
excel如何冻结表头
2023-09-25 14:07:15
word大括号怎么打两行
2022-09-13 20:47:35
![](https://img.aspxhome.com/file/2023/3/35433_0s.png)
疯读小说怎么调节亮度?教你随意调节亮度的方法!
2022-11-15 05:02:58
![](https://img.aspxhome.com/file/2023/7/a329506_0s.jpg)
Win10 1909系统怎么关闭防火墙?防火墙关闭步骤详解
2023-11-13 15:32:56
![](https://img.aspxhome.com/file/2023/6/48776_0s.jpg)
excel2003单元格自定义样式的教程
2023-04-26 05:19:07
Win10系统提示“explorer.exe应用程序错误”怎么解决?
2023-11-11 15:33:54
![](https://img.aspxhome.com/file/2023/1/48691_0s.jpg)