WPS表格技巧三秒钟获取字词对应的第一个字母

时间:2023-12-11 06:02:19 

预览该模板:

WPS表格技巧三秒钟获取字词对应的第一个字母

   在日常工作过程中,我们常需要获取汉字对应的第一个字母,比如,学生用音序查字法查字词典,医院建立药品查询系统,KTV建立歌曲查询系统……有没有办法轻松获取字词的第一个字母呢?大家都知道ET和EXCLE可以按音序排列中文数据,这就表明电子表格已经能洞悉汉字拼音的第一个字母与其在汉字编码系统的位置的关系了。只要查询出汉字在编码系统中的位置,并告知相同音序的汉字在编码中的起始位置,电子表格就可以将汉字的音序轻松获取。

想三秒钟获取汉字对应的第一个字母就打开你的WPS表格2012,跟我试试吧!

一、打开原始工作簿,在准备填充字母的列粘贴下列嵌套公式:

=LOOKUP(CODE(A2),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"})

在这个公式中,CODE函数旨在查询词语(字符串)第一个字符对应的数字代码,这些代码其实标明了这个汉字在代码库中的具体排位,LOOKP函数就根据不同音序汉字在代码库中的起始位置,获取到这个汉字的第一个字母了。

其中,A2是引用汉语字词所在的单元格名称,大家可获取字词前两个汉字所对应的第一个字母根据实际情况修改。

二、如果你想获取词语第二个汉字对应的字母,可以将上述公式中的A2改为MID(A2,2,1),表示从字符串的第二个开始取的第一个,即第二个。具体公式为:

=LOOKUP(CODE(MID(A2,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(A2,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"})

三、如果想获取前两个汉字音序怎么办?用“&”将获取第一、二个汉字音序的公式合并即可。如果想获取前三个汉字音序就用“&”将获取第一、二、三个汉字音序的公式合并。

获取字符串前三个汉字音序的公式:

=LOOKUP(CODE(A2),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(A2,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(A2,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"})

标签:WPS表格技巧三秒钟获取字词对应的第一个字母
0
投稿

猜你喜欢

  • 都是PPT文档,为什么文档的图标不一样?

    2023-02-04 14:09:58
  • excel图表一个公式搞定双条件查询

    2022-05-12 18:17:40
  • excel中分类汇总功能用法

    2022-04-24 02:16:00
  • win7系统tcpip.sys蓝屏修复教程

    2023-01-30 11:32:06
  • 如何使Excel软件美化批注样式更美观

    2023-12-12 18:20:00
  • 如何将PPT某一页幻灯片导出为高清图片

    2022-05-22 20:49:37
  • win10提示计算机显卡内存不足情况的解决办法介绍

    2022-01-28 15:26:38
  • 通达信证券软件如何进行选股?通达信证券软件进行选股的操作步骤

    2023-06-29 06:21:29
  • win10电脑休眠后自动断网怎么办

    2023-05-15 04:06:11
  • 电脑内存8G和16G的区别_电脑内存8G和16G的区别介绍

    2022-12-30 19:36:03
  • Win7系统删除多余的输入法进行系统运行优化

    2023-03-22 04:54:30
  • 万能变声器语音包怎么用?万能变声器语音包使用的方法

    2023-07-24 03:24:45
  • 文件夹怎么加密 三种文件夹加密的方法

    2024-01-02 03:40:19
  • Win10 v2004正式版收获终极更新:微软即日起结束支持

    2022-04-11 06:14:32
  • 笔记本电脑本身荧幕坏掉,接外接荧幕重灌作业系统记录

    2022-07-14 10:37:46
  • win10电脑玩最终幻想突然没声音的解决方法

    2023-05-22 07:09:02
  • 如何给Word安装新字体

    2023-04-22 19:57:55
  • 主板type-c接口有什么用

    2022-12-31 03:59:54
  • Win8.1系统MOUSE WITHOUT BORDERS鼠标失效提示无法连接找不到主机的解决方法

    2023-02-21 09:33:37
  • 如何使用腾讯电脑管家进行加速?腾讯电脑管家加速功能使用教程

    2023-04-26 16:02:25
  • asp之家 电脑教程 m.aspxhome.com