cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanMuriel
Level: Powered On

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
Dual Super User

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
Dual Super User

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,647)