cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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
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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 334 members 6,261 guests
Please welcome our newest community members: