Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Separate text in column and copy to anoter column

(0) ShareShare
ReportReport
Posted on by

I have a column called Employee Name which has a first and last name (ex. Joe Smith) separated by a space.    I Need to pull out the first name and first two letters of the last name (joesm) and then copy it to another column.

 

I have tried the split, replace, text and several other functions and can't get it to work.  I have tried to get the data before the space and then the data after the space but it still fails.

 

Any help would be greatly appreciated.

 

Thank you!

 

 

  • Ventit Profile Picture
    410 on at
    Re: Separate text in column and copy to anoter column

    I assume you do a get items if so add 2 compose actions after the Get items

     

    Use expression

    Compose1: add(indexof(Namefield,' '),1) - This gets count to the space between names

    Compose2: concat(substring(Namefield,0,Compose1),Substring(Namefield,Compose1,2)) - Adds the firstname and the gets the first two letters of surname and adds it

     

    You may need to tweak the counts slightly but should give you a start

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >