在EXCEL表格里名称如何自动生成拼音简码?

 我来答
东郭永修璩辛
2020-02-09 · TA获得超过3.6万个赞
知道大有可为答主
回答量:1.4万
采纳率:27%
帮助的人:839万
展开全部
单个汉字的话可以直接用公式,多个汉字的话vba更方便一些。
按住ALT依次按F11,I,M。将下面的代码粘贴到右侧窗口。
==========
Function
PY(x)
On
Error
Resume
Next
Application.Volatile
For
i
=
1
To
Len(x)
PY
=
PY
&
Application.WorksheetFunction.HLookup(Mid(x,
i,
1),
[{"吖","八","嚓","咑","鵽","发","猤","铪","夻","咔","垃","呒","旀","噢","妑","七","囕","仨","他","屲","夕","丫","帀";"A","B","C","D","E","F","G","H","J","K","L","M","N","O","P","Q","R","S","T","W","X","Y","Z"}],
2)
Next
End
Function
==========
假设要转化的汉字在A列,B1输入公式
=PY(A1)向下填充即可。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式