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

在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表格提出名字拼音首字母

相关文章

wps只读excel修改不了 | wps只读模

wps只读excel修改不了 | wps只读模

只读,修改,模式,教程,表格,1.wps只读模式怎样修改一、首先,打开WPS程序,打开要取消只读模式的文件。二、然后,在wps程序主界面上方点击“审阅”,点击打开。三、然后,在“审阅”下点击“限制编辑”,点击打开。四、然后,在窗口中选择“停止保护”,点…

wps更换密码 | wps修改密码

wps更换密码 | wps修改密码

修改密码,设置,密码,修改,文档,1.wps怎么修改密码您好,2113 修改方法:52611、首先,打开wps文档,进入4102文档界面2、点击右1653上角的wps账号3、进入内账号界面,点击-账号与容安全4、然后在账号与安全页面,点击修改密码-修改5、填写原来的密码以…

wps绘画线状图 | 用WPS演示画线段

wps绘画线状图 | 用WPS演示画线段

绘制图形,教程,线状,曲线图,演示,1.怎样用WPS演示画线段图用WPS演示画线段图的具体步骤如下:1、首先我们在桌面上新建一个wps excel文档,并双击打开该excel文档。2、然后我们在打开的电子表格中编制一个简单的数据表用来作演示。3、选定这个…

手机wps设置1.5倍行距 | 手机wps段

手机wps设置1.5倍行距 | 手机wps段

行间距,设置,教程,行距,段落,1.手机wps段落行间距怎么调手机版的wps便捷了我们大部分人的编辑生活,可是如何处理段落间行距问题呢?今天的教程就来带大家看看具体的操作步骤吧。具体如下:1. 首先,打开我们需要进行设置的文档,2. 接着,点击右下角的…

查找wps文档记录 | 查看wps历史记

查找wps文档记录 | 查看wps历史记

文档,历史记录,查找,删除,教程,1.怎么查看wps历史记录及删除最近打开文档历史记录1、怎么查看wps历史记录?在运行的wps文档里面,点击左上角蓝色的“WPS文字”即可看到最近打开的文件。如下图所示:2、wps历史记录怎么清除?其实重点就是怎么删除w…

wps2019批量压缩 | 在WPS中压缩

wps2019批量压缩 | 在WPS中压缩

压缩图片,照片,压缩,设置,文字,1.如何在WPS中压缩图片可以在WPS演示中进行,操作步骤如下: 1、在wps演示的工具栏上方点击“插入”选项。2、在“插入”工具列表中单击“图片”旁边的倒三角。 3、在弹出的菜单列表中单击“来自文件”选项,并载…

查找wps子目录 | 查找WPS中保存的

查找wps子目录 | 查找WPS中保存的

查找,文档,快速查找,创建目录,子目录,1.怎样查找WPS中保存的文档1、打开WPS页面,点击“云文档”2、进入云文档后,点击右上方的“搜索文档”3、如果查找不到的话,点击左边状态栏中的“回收站”,看看自己是否把文件给误删了。4、或者再点击“团队…

WPS的PPT里合并形状 | WPS的PPT里

WPS的PPT里合并形状 | WPS的PPT里

合并,拆分,图形,教程,形状,1.WPS的PPT里面的图形合并拆分在哪1、先打开WPS的PPT,建立好自己想要的图形。2、选中想要合并的图形(要合并两个图形就选中两个图形,要合并三个图形就选中三个图形,这里以合并两个图形为例)。我要合并矩形和椭圆形,先选…

取消WPS中excel的筛选 | WPS取消自

取消WPS中excel的筛选 | WPS取消自

筛选,取消,教程,功能,表格,1.WPS如何取消自动筛选功能WPS取消自动筛选功能的具体操作步骤如下:我们需要准备的材料有:电脑、WPS。1、首先我们打开需要编辑的WPS。2、然后我们在该页面中点击“数据”选项。3、之后我们在该页面中选中表格点击…

wps文字横向打印竖向打印 | wps纵

wps文字横向打印竖向打印 | wps纵

横向,方法,设置,竖向,文件,1.wps怎么纵向打印 wps纵向打印设置方法一、首先,打开WPS文字程序,进入WPS程序操作主界面。二、然后,在WPS程序操作主界面上方选择“文件”,点击“页面设置”,点击打开。三、最后,在窗口中选择设置“纵向”,然后直接打印…

改wps文字里表格的大小写 | WPS文

改wps文字里表格的大小写 | WPS文

文字,设置,大小写,字体,教程,1.WPS 文字中怎么设置表格的大小不一样啊不随文字大小变化的设置可以选中所有可以更改的单元格,设置单元格式为不锁定,然后把表格保护起来,这时可以输入数据,但表格的行高、列宽是不能动的。WPS Office是由金山软件…

wps在一个单元格里写两行字 | wps

wps在一个单元格里写两行字 | wps

单元,格中,教程,格里,格子,1.wps表格,怎么在一个格子里面 弄2行字wps表格,在一个格子里面输入2行字,可以使用组合键“Alt+Enter”实现文本换行。具体操作步骤如下:1、打开相关WPS表格,将光标停在需要输入两行文本的第一行末尾,通过组合键“Alt+E…