Solved

Strip Filename from a websit url

Posted on 2010-08-21
2
395 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
ID: 33491875
=RIGHT(A1,LEN(A1)-FIND("|",SUBSTITUTE(A1,"/","|",LEN(A1)-LEN(SUBSTITUTE(A1,"/","")))))

Kevin
0
 

Author Closing Comment

by:sagarh
ID: 33491887
Thanks! works perfectly.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

777 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