Extracting the last line of text from an excel spreadsheet.

Andrewgray123

New Member
Joined
Jul 27, 2016
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I've got a spreadsheet of a CSV File with an export of products. This has everything i require to port over to another website, however, i do require the url Slugs.


So the format of the CSV file will show in Cell D1 for example.


http://www.mbdiy.co.uk/door-hardware-c3/door-knockers-c11/victorian-urn-door-knocker-p3
I want to keep the data from the last forward slash, everything else is simple as i can extract caterogires from the CSV no problem, but it's the last "victorian-urn-door-knocker-p3"


Any suggestions on how to achieve this will be greatly appreciated.
Kind Regards
Andy
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Andy,

With "door-hardware-c3/door-knockers-c11/victorian-urn-door-knocker-p3" in cell D1, put the following formula in cell E1:

=TRIM(RIGHT(SUBSTITUTE(D1,"/",REPT(" ",LEN(D1))),LEN(D1)))

Cheers,

tonyyy
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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