web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Splitting Strings

(0) ShareShare
ReportReport
Posted on by 92

Hi,

 

I have a comboxbox search for Employee which I called Main Presenter and a text label to get their Department.split department.png

 This is for the Department:

 

SearchPresenter_2.Selected.Department

 

 

How I can split the Department into Department No. (1234) and Department Name (Technical Department)?

 

Any help is very much appreciated! 🙂 Thank you.

 

Regards,

May

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi May,

    This will return 1234

    First(Split(SearchPresenter_2.Selected.Department, " ")).Result

    This will return the remaining words (eg, Technical Department)

    Concat(LastN(Split(SearchPresenter_2.Selected.Department, " "),
     CountRows(Split(SearchPresenter_2.Selected.Department, " "))-1), 
     Result & " "
    )

    Hope that helps!

  • mayarnaldo Profile Picture
    92 on at

    Perfect! Thank you! 🙂

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard