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 / Extracting value from ...
Power Apps
Answered

Extracting value from String

(0) ShareShare
ReportReport
Posted on by 56

Hello,

 

In PowerApps, I am trying to extract values from a single line of text column. 

The text column holds values similar to: 

ABC^100,CDE^90,FGHIJK^85


My goal is, given a Text input variable for example: "CDE"
return the value "90"

Not all values in the column will have the same character length.

Any help would be greatly appreciated.

Thanks

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @jody1213 

     

    I got it working for you:

     

    Index(
     Split( 
     LookUp(
     Split(Label1.Text, ","), // split string with comma
     StartsWith(Value, varText) // search for a variable text in Split table
     ).Value, 
     "^" // split the found text in to 2 records
     ), 
    2 // select the second row in the table
    ).Value

     

    SpongYe_0-1698259125743.png

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

  • jody1213 Profile Picture
    56 on at

    @SpongYe 

    Thanks for the response! Your solution worked! The only issue I had was that the Index Function throws a warning if the table I am using the formula in, is empty.

    However, I was able to use this formula below to get it to work without the warning messages: 

    First(Split(Last(Split(ColumnValues,TextInput.Text&"^")).Value,",")).Value)

     
    Thanks again!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard