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
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.

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.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

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

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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 456 members 4,614 guests
Please welcome our newest community members: