当前位置:首页 > 日记 > 正文

在wps表格提出名字拼音首字母 | 在WPS表格里把姓名全部转换为拼音或小写字母

1.在WPS表格里怎么把姓名全部转换为拼音或小写字母

想要在2113WPS表格中把汉字转换成拼音或小写字5261母,只需要运用模块4102代码编辑功能1653就能轻松解决,具体操作方法如下:步骤1、打开要转换成拼音的excel表格,按“Alt+F11”组合键,进入Visual Basic编辑状态。

也就是看到的这个灰色的编辑界面。步骤2、执行“插入→模块”命令,插入一个新模块。

再双击插入的模块,进入模块代码编辑状态。步骤3、看到如下界面。

步骤4、把下面的所有内容复制,粘贴到步骤4中的空白处。Function pinyin(p As String) As String i = Asc(p) Select Case i Case -20319 To -20318: pinyin = "a " Case -20317 To -20305: pinyin = "ai " Case -20304 To -20296: pinyin = "an " Case -20295 To -20293: pinyin = "ang " Case -20292 To -20284: pinyin = "ao " Case -20283 To -20266: pinyin = "ba " Case -20265 To -20258: pinyin = "bai " Case -20257 To -20243: pinyin = "ban " Case -20242 To -20231: pinyin = "bang " Case -20230 To -20052: pinyin = "bao " Case -20051 To -20037: pinyin = "bei " Case -20036 To -20033: pinyin = "ben " Case -20032 To -20027: pinyin = "beng " Case -20026 To -20003: pinyin = "bi " Case -20002 To -19991: pinyin = "bian " Case -19990 To -19987: pinyin = "biao " Case -19986 To -19983: pinyin = "bie " Case -19982 To -19977: pinyin = "bin " Case -19976 To -19806: pinyin = "bing " Case -19805 To -19785: pinyin = "bo " Case -19784 To -19776: pinyin = "bu " Case -19775 To -19775: pinyin = "ca " Case -17721 To -17704: pinyin = "he " Case -17703 To -17702: pinyin = "hei " Case -17701 To -17698: pinyin = "hen " Case -17697 To -17693: pinyin = "heng " Case -17692 To -17684: pinyin = "hong " Case -17683 To -17677: pinyin = "hou " Case -17676 To -17497: pinyin = "hu " 步骤5、按下ALT+Q关闭Visual Basic编辑窗口,返回Excel编辑状态。

步骤6、选中转换后的拼音需要放在哪个列,例如要把B列的第2行的内容转换成拼音,放在D列的第2个单元格,输入公式:=getpy(B2),这里的B2,是指源头单元格的坐标。步骤7、如果要去除拼音之间的空格。

去掉空格的拼音放在E列,如果这个未去掉空格的数据原来在D2单元格,去掉空格之后的拼音放在E2单元格,则在E2单元格输: =SUBSTITUTE(D2," ","")。

2.wps 或者excel 怎么用首字母查找姓名

假设源数据(姓名)在Sheet1的A列。

1、在Sheet1的B1输入

=LOOKUP(CODE(A1),45217+{0,36,544,1101,1609,1793,2080,2560,2902,3845,4107,4679,5154,5397,5405,5689,6170,6229,7001,7481,7763,8472,9264},{"A","B","C","D","E","F","G","H","J","K","L","M","N","O","P","Q","R","S","T","W","X","Y","Z"})&IF(LEN(A1)>1,LOOKUP(CODE(MID(A1,2,1)),45217+{0,36,544,1101,1609,1793,2080,2560,2902,3845,4107,4679,5154,5397,5405,5689,6170,6229,7001,7481,7763,8472,9264},{"A","B","C","D","E","F","G","H","J","K","L","M","N","O","P","Q","R","S","T","W","X","Y","Z"}),"")&IF(LEN(A1)>2,LOOKUP(CODE(MID(A1,3,1)),45217+{0,36,544,1101,1609,1793,2080,2560,2902,3845,4107,4679,5154,5397,5405,5689,6170,6229,7001,7481,7763,8472,9264},{"A","B","C","D","E","F","G","H","J","K","L","M","N","O","P","Q","R","S","T","W","X","Y","Z"}),"")

回车并向下填充;

2、Sheet2的A1留给你输入姓名拼音开头(如LYH或LY);

3、Sheet2的A2输入

=INDEX(Sheet1!A:A,SMALL(IF(ISNUMBER(FIND(A$1,Sheet1!B$1:B$1000)),ROW($A$1:$A$1000),4^8),ROW(1:1)))&""

数组公式,输入后先不要回车,按Ctrl+Shift+Enter结束计算,再向下填充。

3.请教在EXCEL中把人名的拼音首字母提取的方法

LOOKUP(CODE(LEFT(B1,1)),45217+{0,36,544,1101,1609,1793,2080,2560,2902,3845,4107,4679,5154,5397,5405,5689,6170,6229,7001,7481,7763,8472,9264},{"A","B","C","D","E","F","G","H","J","K","L","M","N","O","P","Q","R","S","T","W","X","Y","Z"})&LOOKUP(CODE(MID(B1,2,1)),45217+{0,36,544,1101,1609,1793,2080,2560,2902,3845,4107,4679,5154,5397,5405,5689,6170,6229,7001,7481,7763,8472,9264},{"A","B","C","D","E","F","G","H","J","K","L","M","N","O","P","Q","R","S","T","W","X","Y","Z"})&LOOKUP(CODE(MID(B1,3,1)),45217+{0,36,544,1101,1609,1793,2080,2560,2902,3845,4107,4679,5154,5397,5405,5689,6170,6229,7001,7481,7763,8472,9264},{"A","B","C","D","E","F","G","H","J","K","L","M","N","O","P","Q","R","S","T","W","X","Y","Z"})

公式太长,不写if了,名字为2个字的删除最后一个&lookup()

4.wps或者word文字怎么以拼音首字母排列

操作步骤:

1、选中表格;

2、单击表格工具---->;布局---->;排序,如图所示;

3、弹出排序对话框,在类型处选择拼音即可,如图所示。

如何在wps表格提出名字拼音首字母

相关文章

在华为nova3中设置自动接听电话的

在华为nova3中设置自动接听电话的

在华为nova3中设置自动接听电话的图文教程,华为nova3,设置自动接听电话,  如果你还不清楚在华为nova3中怎么设置自动接听电话,就来下文学习在华为nova3中设置自动接听电话的图文教程吧,希望可以帮助到大家。  在华为nova3中设置自动接听电…

把wps里的文件保存到桌面 | wps文

把wps里的文件保存到桌面 | wps文

桌面,文档,文字,文件,文件保存,1.wps文档怎么保存到桌面1.双击桌面WPS 2019办公软件,在WPS2019办公软件中建立需要的文档,完成文档后,点击左上角工具栏中的“文件”。2.在选择的“文件”功能弹出的列表中点击“另存为”,弹出选择文件储存位置的…

wps的ppt保存压缩最小 | 用WPS压缩

wps的ppt保存压缩最小 | 用WPS压缩

压缩,文件大小,文档,文件,教程,1.如何用WPS压缩ppt文件大小以安卓手机为例,具体操作步骤如下: 1、首先,在手机上找到手机WPS 2019,然后单击以将其打开,如下图所示,然后进入下一步。2、其次,登录到WPS帐户,然后单击页面底部导航栏中的应用选项,如下图…

取消绑定WPS | 请问wps手机版解除

取消绑定WPS | 请问wps手机版解除

绑定,取消,教程,手机号,WPS,1.请问wps手机版怎么解除手机号绑定WPS office与手机号解绑步骤(WPS2019):1、打开WPS2019。2、根据图片中红色区域在WPS2019界面右上角找到个人账户,点击“个人账户”。3、点击“个人账户”界面中的“账号安全”选…

在三星note9中打开视频增强程序的

在三星note9中打开视频增强程序的

在三星note9中打开视频增强程序的方法讲解,三星note9,打开视频增强程序,  最近有些朋友在使用三星note9的时候,表示希望能够在三星note9中打开视频增强程序,想知道该怎么操作。就看看下文吧,希望对你有所帮助。  在三星note9中打开视频增强…

苹果怎么设置听筒 | 苹果怎么设置

苹果怎么设置听筒 | 苹果怎么设置

设置,调节,方法,听筒,声音,1. 苹果怎么设置听筒声音大小1、首先可以在手机系统设置里三个选项常规,声音,显示,点击声音选项。2、接着声音中选择音量中的“音乐,视频,游戏和其他媒体”,然后滑到绿色横线到需要位置。3、接着打开微信,点击其中一个微…

wpsword表格中填充 | 让WPS表格自

wpsword表格中填充 | 让WPS表格自

自动填充,数据,填充,快捷键,教程,1.怎么让WPS表格自动填充数据1、首先,双击电脑桌面上的WPS表格图标,打开需要操作的表格。2、在表格中输入数字“1,2”,然后,鼠标框选中这两个单元格,将鼠标放在A2单元格右下角,是之呈黑色十字的形状。3、按住鼠标…

cdr上下间距快捷键 | cdr字间距快

cdr上下间距快捷键 | cdr字间距快

快捷键,行间距,文字,调整,字体,1. cdr字间距快捷键1.首先打开软件,我们选择文本工具打出文字。2.按快捷键F10,或者直接在工具栏中点选形状工具,此时鼠标放在右下角的部位会变成十字,按住鼠标拖动就可以改变字符间距了。3.也可以选择文本工具,然…

登录全民小视频的图文教程

登录全民小视频的图文教程

登录全民小视频的图文教程,全民小视频,登录,  全民小视频很受人们喜欢,大家知道怎么登录全民小视频吗?今天小编教大家如何登录全民小视频的图文教程,我想一定会对你有所帮助的。  登录全民小视频的图文教程  1、首选必不可少的就是——…

wps中函数值选区固定 | wps快速选

wps中函数值选区固定 | wps快速选

区域,置顶,函数,教程,单元格,1.wps如何快速选中指定区域的单元格wps选中指定区域的单元格步骤:1. 从桌面或是开始菜单中打开wps2. 然后在wps的名称框中输入指定区域的单元格的行列就可以选中了3. 看下面的图例提示:冒号在中英文输入法输入都…

在魅蓝6t中查看实时网速的方法分享

在魅蓝6t中查看实时网速的方法分享

在魅蓝6t中查看实时网速的方法分享,魅蓝6t,查看实时网速,  最近有些朋友想在魅蓝6t中查看实时网速,那么下面小编就为大家介绍了在魅蓝6t中查看实时网速的方法,希望对你有所帮助。  在魅蓝6t中查看实时网速的方法分享  第一步:在手机桌面…

WPS单独旋转页 | wps设置单独一张

WPS单独旋转页 | wps设置单独一张

设置,横向,教程,页面,纸张,1.wps怎么设置单独一张页面方向首先打开word文件1. 如果要把某一页设置成横向,鼠标点在该页的上一页任何地方,那么再点菜单栏“页面布局”》“分隔符”》2. 选择分隔符下的“分节符”》下一页3. 然后鼠标点到需要变…