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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,497
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:

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
14,789
Office Version
  1. 2010
Platform
  1. Windows
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 />
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
7,245
Office Version
  1. 2016
Platform
  1. Windows
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))
 

RKROX907

New Member
Joined
Mar 27, 2017
Messages
17

ADVERTISEMENT



Thank you jtakw, sandy666 & DanteAmor :)
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
14,789
Office Version
  1. 2010
Platform
  1. Windows
You're welcome and thanks for the feedback.
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
7,245
Office Version
  1. 2016
Platform
  1. Windows
You're welcome, thanks for the feedback.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,015
Messages
5,834,939
Members
430,327
Latest member
Mr_Himalayan778

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
Top