cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Split Sting on second and third Backslash \

I was hoping if someone could help in trying to create a formula in PowerApps in which I can extract a portion of a string where the data is usually between the second and third \ see below: it is important to keep in mind that the numbers of character change every time. 

 

This is string that I need to extract: CD1245-open 

from the following full string

 

\\Ironsar-Test\CD1245-open\Test123-TSC02-house  

 

This is the formula that I have used in excel that has was worked perfectly but when I try to recreate it in PowerApp is fails.

 

=TRIM(LEFT(SUBSTITUTE(MID(A2; FIND("|"; SUBSTITUTE(A2;"\";"|";3))+1;LEN(A2));"\";REPT(" ";LEN(A2)));LEN(A2)))
 
 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Split Sting on second and third Backslash \

Hey!

Please refer to the formula in the screenshot below. This should help you extract the desired string. 

MicrosoftTeams-image (6).png

 

 

Thanks, 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Dual Super User III
Dual Super User III

Re: Split Sting on second and third Backslash \

Hey!

Please refer to the formula in the screenshot below. This should help you extract the desired string. 

MicrosoftTeams-image (6).png

 

 

Thanks, 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,714)