Solved

Strip Filename from a websit url

Posted on 2010-08-21
2
375 Views
Last Modified: 2012-05-10
Hi

I have a long list of URL's of images on my website that I want to import into my database. I have downloaded the list of images into excel and they appear as follows:-

http://www.mywebsite.com/images/image1.jpg
http://www.mywebsite.com/images/image-two.jpg
http://www.mywebsite.com/images/imagethree.jpg
http://www.mywebsite.com/images/image4.jpg

I want to use excel to prepare a csv file to import into my databse but I only want the image name rather than the whole URL... thus I want a formula/macro which would return:-

image1.jpg
image-two.jpg
imagethree.jpg
image4.jpg

I have over 2000 records to import!
Can this be done somehow?

Thanks for the help!!
0
Comment
Question by:sagarh
2 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
Comment Utility
=RIGHT(A1,LEN(A1)-FIND("|",SUBSTITUTE(A1,"/","|",LEN(A1)-LEN(SUBSTITUTE(A1,"/","")))))

Kevin
0
 

Author Closing Comment

by:sagarh
Comment Utility
Thanks! works perfectly.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now