Help with parsing URL link using left and find functions

RKROX907

New Member
Joined
Mar 27, 2017
Messages
17
Hi Everyone,

Cell A1 has this text:
HTML:
https://somewebsite/images/products/SkuName/genricFileName.jpg


I would like to extract SkuName

The SkuName always will come after the 5th "/" and will end by the 6th "/"

the end result should be, B1 has the text: SkuName

Please help
Thanks!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
if it is a representative example you can try PowerQuery (Get&Transform)

urlurl
https://somewebsite/images/products/SkuName/genricFileName.jpgSkuName

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
    #"Extracted Text Between Delimiters" = Table.TransformColumns(Source, {{"url", each Text.BetweenDelimiters(_, "/", "/", {1, RelativePosition.FromEnd}, 0), type text}})
in
    #"Extracted Text Between Delimiters"[/SIZE]
 
Last edited:
Upvote 0
Try with this formula

<b>Sheet</b><br /><br /><table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:491px;" /><col style="width:120px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >https://somewebsite/images/products/SkuName/genricFileName.jpg</td><td >SkuName</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b> </b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B1</td><td >=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"/","#",5),"/","#",5),"#",REPT(" ",99)),99,99))</td></tr></table></td></tr></table> <br /><br />
 
Upvote 0
Hi,

How about this:


Book1
AB
1https://somewebsite/images/products/SkuName/genricFileName.jpgSkuName
Sheet647
Cell Formulas
RangeFormula
B1=TRIM(MID(SUBSTITUTE(A1,"/",REPT(" ",255)),255*5,255))
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top