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 Platform Community / Forums / Power Apps / Extract line of text t...
Power Apps
Answered

Extract line of text then individual item from multiline text box to single line text box

(0) ShareShare
ReportReport
Posted on by 224

I have a multilined text box I would like to break up into individual values. Here's an example:
Rank Name Specialty Zip
5 bob psychiatry 32123

6 larry oncology 45654

8 howard chiro 78987

10 fred ont 65498

 

1. How can I extract line two into a text box? '5 bob psychiatry 32123'

2. How can I then extract the third item on line two into a text box? 'psychiatry'

 

Please and thank you!

Categories:
I have the same question (0)
  • Verified answer
    crisfervil Profile Picture
    126 on at

    @kgiles123 ,

     

    You can combine the Index and Split functions, like the example below. Use the row index and column index values to indicate the row and index you want to retrieve. 

    Also, if you use different separators, make sure to indicate them.

     

    Index(
     Split(
     Index(
     Split(
     "Rank Name Specialty Zip" & Char(10) & "5 bob psychiatry 32123" & Char(10) & "6 larry oncology 45654" & Char(10) & "8 howard chiro 78987" & Char(10) & "10 fred ont 65498",
     Char(10)// This is the rows separator
     ),
     4// The row index you want to retrieve
     ).Value,
     " " // The column values separator
     ),
     4 // The column index you want to retrieve
    ).Value

     

    2024-03-13_18-34-12.gif

     

    I hope it helps!

  • kgiles123 Profile Picture
    224 on at

    This helps but how can I get just row two extracted from field textinput1.text? The information that will be showing up in textinput1.text will change with every use of this reporting tool. Thank you for all the work you put into this. 

  • kgiles123 Profile Picture
    224 on at

    I got it 🙂

  • crisfervil Profile Picture
    126 on at

    Well done!! 👏👏

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard