跳到主要内容

如何在Excel中将全名分为姓和名?

假设您有一个名称列表,如下面的单个列中所示,第一个屏幕快照,则需要将全名拆分为名字列,中间名称列和姓氏列,如下面的屏幕快照所示。 以下是一些棘手的方法可以帮助您解决此问题:


用公式将全名拆分为名字和姓氏

将全名拆分为名字和姓氏:

您可以使用Left函数,Right函数和Find函数通过以下步骤将全名吐出为名字和姓氏:

1。 输入公式 = LEFT(A2,FIND(“”,A2,1)-1) 在空白单元格中,在这种情况下说单元格C2,然后将填充手柄向下拖动到要填充此公式的单元格中,并且所有名字都被一次提取出来,请参见屏幕截图:

doc拆分全名2

2。 然后输入公式 = RIGHT(A2,LEN(A2)-FIND(“”,A2,1)) 在另一个空白单元格“单元格D2”中,并将填充手柄向下拖动到要应用此公式的单元格上,所有姓氏都已提取到D列中,如以下屏幕截图所示:

doc拆分全名3


将全名拆分为名字,中间名和姓氏:

如果要将全名分为姓,名和姓,请使用以下公式。

1。 输入以下公式: = LEFT(A2,SEARCH(“”,A2)) 到一个空白单元格C2中,然后将填充手柄向下拖动到这些单元格以应用此公式,并且所有名字都被拆分为C列,请参见屏幕截图:

doc拆分全名4

2。 然后输入以下公式: = MID(A2,SEARCH(“”,A2,1)+ 1,SEARCH(“”,A2,SEARCH(“”,A2,1)+1)-SEARCH(“”,A2,1)) 到一个空白单元格D2中,然后将填充手柄向下拖动到这些单元格以应用此公式,并且所有中间名均被拆分为D列,请参见屏幕截图:

doc拆分全名5

3。 最后,输入以下公式: = RIGHT(A2,LEN(A2)-SEARCH(“”,A2,SEARCH(“”,A2,SEARCH(“”,A2)+1)))) 到一个空白单元格E2中,然后将填充手柄向下拖动到这些单元格以应用此公式,并且所有名字都被拆分为E列,请参见屏幕截图:

doc拆分全名6


使用“文本到列”命令将全名拆分为名字和姓氏

记住该功能并不容易。 请不要担心。 第二种方法将引导您轻松拆分全名列。

1。 选择您将拆分的列,在这种情况下为A2:A13。

2。 点击 文本到列 按钮下 时间 标签。

doc拆分全名7

3。 在 将文本转换为列向导–第1步,共3步 对话框,检查 分隔 选项,然后单击 下一页 按钮。

doc拆分全名8

4。 在 第2步(共3步)向导,仅检查 太空 在选项 定界符 部分,然后单击 下一页 按钮。

doc拆分全名9

5。 在以下向导中,检查 文本 在选项 列数据格式 部分,并指定 目的地 您要放置结果的单元格。 看截图:

doc拆分全名10

6。 点击 完成 按钮。 然后,您会看到全名列立即被分为名字列,中间名列和姓氏列。


使用 Kutools for Excel 快速轻松地将全名拆分为名字和姓氏

如果您对以上两种方法感到厌倦,请在这里为您推荐一个有用的工具- Kutools for Excel,其 分割名称 功能,您可以根据需要快速将全名拆分为名字和姓氏,也可以将全名拆分为名字,中间名和姓氏。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用. 

安装后 Kutools for Excel,请执行以下操作:

1。 选择要拆分的名称范围。

2。 点击 库工具 > 合并与拆分 > 分割名称分割名称 对话框中,指定 分割类型 如果需要,如果要将全名分为姓和名,请检查 名字姓氏,请参见屏幕截图:

3. 然后点击 OK 按钮,然后会出现另一个对话框,请在对话框中选择要放置结果的单元格,请参见屏幕截图:

doc拆分全名12

4。 并点击 OK 按钮,全名已分为名字列和姓氏列,请参见屏幕截图:

doc拆分全名13

备注:如果您的全名包含名字,中间名和姓氏,需要分别分成三列,则只需检查 名字, 中间名字姓氏 ,在 分割名称 对话框,您将得到以下结果:

doc拆分全名14

立即下载和免费试用Excel的Kutools!


用逗号或其他分隔符将全名拆分为名字和姓氏:

如果您的全名在单元格中用逗号或其他分隔符分隔,Kutools for Excel' 分裂细胞 功能也可以帮您一个忙,请参见屏幕截图:

doc拆分全名15

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!


使用 Kutools for Excel 快速将全名拆分为名字和姓氏

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!

Comments (88)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am able to, using Kutools, split First and Last names into two separate cells, but only on one worksheet at a time. I want to split First and Last names in same cells on 50 different worksheets within the same workbook. Is that possible? I've tried and the Kutools options for doing this become inoperable (greyed out). Please help! I don't want to have to do these one at a time. Thank you!
This comment was minimized by the moderator on the site
Hi there,

Plesae insert the below VBA code into a module in your Excel workbook:
Sub split_names()

'Update by ExtendOffice 2022/09/23

    Dim xArray As Variant
    Dim xValue As Variant
    Dim xSplit As Variant
    Dim xRg As Range
    Dim xSaveRg As Range

    With ThisWorkbook
        xArray = Array(.Sheets("Sheet1").Range("A1:A11"), .Sheets("Sheet2").Range("B1:B10"), .Sheets("Sheet3").Range("A1:A10"))
    End With

    For i = LBound(xArray, 1) To UBound(xArray, 1)
        
        Set xRg = Application.Range(xArray(i).Address(True, True, xlA1, True))
        Set xSaveRg = xRg.Offset(0, xRg.Columns.Count + 1)
        xValue = xRg.Value
        
        For b = LBound(xValue, 1) To UBound(xValue, 1)
            
            xSplit = Split(xValue(b, 1), " ")
            xSaveRg(b, 1).Value = xSplit(0)
            xSaveRg(b, 2).Value = xSplit(UBound(xSplit))
        
        Next
         
    Next
    
End Sub

Note:
1. In the 12th row of the code, you should change the sheet names and corresponding column ranges to the actual names and column ranges where full names are.
2. After inserting the code and pressing F5 to run the code, the first and last names will apprear in two columns next to the original full names column. If there are data in the output columns, make sure to move them to other columns, otherwise the data will be overwritten.
This comment was minimized by the moderator on the site
I downloaded and installed your utility, but the "Split Names" function was not on the "Text" submenu. I could not find it elsewhere. What gives?
This comment was minimized by the moderator on the site
Hello, Steven,
We have moved this feature under the Merge & Split, please view the screenshot:

Sorry for this inconvenience.
Please try, thank you!
This comment was minimized by the moderator on the site
It was incredibly helpful Thank you very much! I would never be able to figure it our on my own. All your formulas work! Marilyn
This comment was minimized by the moderator on the site
This worked perfectly! Thanks!
This comment was minimized by the moderator on the site
Works for people with 2 or 3 names. In some countries, people have 4 or more names. Creating a formula that split a FullName into FirstName, LastName and Middle Names, that's a real challenge...
This comment was minimized by the moderator on the site
thanks alot :D
This comment was minimized by the moderator on the site
Any news on a hyphenated last name, keeping them together?
This comment was minimized by the moderator on the site
Thank You - incredibly helpful
This comment was minimized by the moderator on the site
beautiful, that was a good show
This comment was minimized by the moderator on the site
Thank you, this was really helpful, and your answer to one of the questions below, about copying and pasting the values to get rid of the equation was equally helpful!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations