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

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 309 members 5,463 guests
Please welcome our newest community members: