Forum Discussion

ADumith's avatar
ADumith
Iron Contributor
Jun 23, 2022
Solved

Separate first and last name from a field.

Hello everyone,

 

I have one column called FullName, so I'm need to separate the first and last names into separate columns. How can I do that in SharePoint?

 

Thank you in advance.

  • ADumith's avatar
    ADumith
    Jun 28, 2022

    Hello @RobElliot ,
    I am sorry to contradict you, but it is possible.
    Here are the formulas for those who need them.

    First Name
    LEFT(FullName,FIND(" ",FullName)-1)

    Last Name
    RIGHT(FullName,LEN(FullName)-FIND(" ",FullName))

    I hope it is helpful.

    Have a good one,

4 Replies

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    ADumith you won't be able to do this just in SharePoint, you'll need to use a flow in Power Automate to do this with a couple of split expressions.

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User

     

     

    • ADumith's avatar
      ADumith
      Iron Contributor

      Hello @RobElliot ,
      I am sorry to contradict you, but it is possible.
      Here are the formulas for those who need them.

      First Name
      LEFT(FullName,FIND(" ",FullName)-1)

      Last Name
      RIGHT(FullName,LEN(FullName)-FIND(" ",FullName))

      I hope it is helpful.

      Have a good one,

      • JenGleason's avatar
        JenGleason
        Copper Contributor
        I had to adjust slightly for sharepoint online but this worked:

        First Name (=LEFT([Full Name], FIND(" ", [Full Name]) - 1)
        Last Name (=RIGHT([Full Name], LEN([Full Name]) - FIND(" ", [Full Name]))

Resources