Extract Number from a String after two trailing slashes

suprag

New Member
Joined
Dec 23, 2015
Messages
8
My url's are of the following format:

Code:
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; white-space: inherit;">[URL="http://www.localhost.com/prod/1108/some-other-desc"]hxxp://www.localhost.com/prod/1108/some-other-desc[/URL]  => Extract 1108
[URL="http://www.localhost.com/product4/1102/some-5-other-desc"]hxxp://www.localhost.com/product4/1102/some-5-other-desc[/URL]  => Extract 1102

</code>

I want to extract the number after the two trailing slash. How do I do it? Let us assume this string is at "C2"
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Assuming they are always after the 4th slash and are numeric:

=0+TRIM(MID(SUBSTITUTE(C2,"/",REPT(" ",99)),99*4,99))
 
Upvote 0

Forum statistics

Threads
1,216,982
Messages
6,133,870
Members
449,840
Latest member
Libby19822

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