Excle中利用公式提取汉字首字母

Excle中,有时需要提取姓名、单位等名称的首字母。这里提供用一个公式就能轻松解决的方法。

操作方法

  • 01

    打开Excle,新建一个文件,在第A1列中输入姓名。

  • 02

    在B1列中输入如下公式: =VLOOKUP(A1,{"","";"吖","A";"八","B";"嚓","C";"咑","D";"鵽","E";"发","F";"猤","G";"铪","H";"夻","J";"咔","K";"垃","L";"嘸","M";"旀","N";"噢","O";"妑","P";"七","Q";"囕","R";"仨","S";"他","T";"屲","W";"夕","X";"丫","Y";"帀","Z"},2) 回车确定后,B1列中就出现了首字母。怎么只有一个?别急,还有下一步。

  • 03

    在B1公式最后面接着输入: &VLOOKUP(MID(A1,2,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) 回车确定后,B1列中就出现了2个首字母。怎么只有2个?别急,往下看。

  • 04

    如果想出现更多的首字母,那么就在后面继续输入类似上面的内容。以下给出的是能同时提取10个首字母公式代码。 =VLOOKUP(A1,{"","";"吖","A";"八","B";"嚓","C";"咑","D";"鵽","E";"发","F";"猤","G";"铪","H";"夻","J";"咔","K";"垃","L";"嘸","M";"旀","N";"噢","O";"妑","P";"七","Q";"囕","R";"仨","S";"他","T";"屲","W";"夕","X";"丫","Y";"帀","Z"},2)&VLOOKUP(MID(A1,2,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)&VLOOKUP(MID(A1,3,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)&VLOOKUP(MID(A1,4,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)&VLOOKUP(MID(A1,5,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)&VLOOKUP(MID(A1,6,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)&VLOOKUP(MID(A1,7,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)&VLOOKUP(MID(A1,8,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)&VLOOKUP(MID(A1,9,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)&VLOOKUP(MID(A1,10,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)

  • 05

    拉动B1单元格右下角的填充柄向下填充,就可以得到所有的首字母了。

(0)

相关推荐

  • 电脑excel软中应用函数转换英文单词首字母为大写如何操作

    有的小伙伴喜欢在电脑上使用Excel软件来进行数据的处理,如今我们还可以应用函数转换英文单词首字母为大写,那么如何进行操作呢?小编就来为大家介绍一下吧.具体如下:1. 第一步,双击或者右击打开需要进行 ...

  • 如何利用公式提取班级(1、2、3)

    根据'120105'代表12级1班5号,利用公式提取班级 操作方法 01 打开excel表格 02 利用MID()函数提取A2,起始点3和长度值2 03 在MID()前输入INT,调出'函数参数'对话 ...

  • 在excel中利用公式做求和算法

    在excel中利用公式做求和算法可以给广大的excel的应用者带来很多工作便利.下面我将讲几种求和算法.,一起来看看吧! 步骤 1.隔列求和 H3=SUMIF($A$2:$G$2,H$2,A3:G3) ...

  • 在word文档中利用公式输入金字塔形数列

    金字塔数列,office软件中使用SmartArt一般可以做出,但是也会有一些限制只可使用公式输入,那么,这种情况下怎么输入呢.这里以word为例,记下我的输入方法. 步骤 1.调出公式工具栏:插入— ...

  • 如何关闭MacBook苹果电脑中的自动大写句首字母功能

    在使用MacBook苹果电脑的时候,如果不希望系统自动大写句首字母的话,应如何关闭该功能呢?接下来就由小编来告诉大家.具体如下:1. 第一步,打开电脑并在桌面上找到系统偏好设置图标,点击打开.2. 第 ...

  • 怎么在Word文档中利用公式计算表格数据

    Word是现在十分常用的文件类型之一,有些新用户不知道怎么在Word文档中利用公式计算表格数据,接下来小编就给大家介绍一下具体的操作步骤.具体如下:1. 首先第一步打开电脑中的Word文档,先将鼠标光 ...

  • 如何在excel中利用公式对不同值标示颜色

    如何在excel中利用公式对不同值标示颜色?这在很多时候都是大家需要关心的问题,那么如何解决呢?本篇就来分享一下小心得给大家. 操作方法 01 如图所示,我们分别对1.10.20.30的数值自动标记出 ...

  • WPS文字中利用公式编辑器制作标注

    一般在制作标注时,我们往往会用文本框加文字来实现,但是文本框的边框样式及内部边距都需要设置,操作起来非常繁琐.不仅如此,而且占据的空间也非常大,往往几个文本框叠加在一起,不易分辨.其实我们可以使用WP ...

  • EXCEL中利用公式识别关键字高亮显示行记录

    工作中由于公司项目较多,年末都要统计工作计划进度表汇报给领导,因此,为了更清晰.直观的查看计划完成情况利用条件格式和公式让需要显示的进行高亮. 操作方法 01 打开需要显示的表格,用鼠标选定需要处理的 ...