+ Reply to Thread
Results 1 to 9 of 9

Extracting title from a URL

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Extracting title from a URL

    Hi friends,

    I am an Ebay seller and I have a list of product URL's I have listed.
    Everytime I'm copying and pasting the titles in a cell. This consumes a lot of time.

    Example URL:
    http://www.ebay.com/itm/Oster-Cordle...e=STRK:MESE:IT

    I need a help to solve this issue by a formula which automatically gets the product name from the URL.
    The title starts at the 25th character. I tried using mid formula but the length of the titles are not same so sometimes I get other part of the URL in the titles.
    Can someone please help me to get the value between "/" and "/".
    From the above URL the title for the product is Oster-Cordless-Electric-Corkscrew-Wine-Bottle-Opener-

    Thanks in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,957

    Re: Extracting title from a URL

    The url example you provided is cut off by the server. Can you paste the whole thing again?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Extracting title from a URL

    HTML Code: 

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extracting title from a URL

    This works on the posted example...

    =TRIM(MID(SUBSTITUTE(SUBSTITUTE(A1,"/",
    REPT(" ",255),5),"/",REPT(" ",255),4),255,255))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Extracting title from a URL

    Hello Tony,

    Thank you for your valuable time in helping me with this.
    This solution works perfectly.
    Is it possible to replace the "-" with " " in the Title?

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extracting title from a URL

    Like this...

    =TRIM(SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE(A1,"/",REPT(" ",
    255),5),"/",REPT(" ",255),4),255,255),"-"," "))

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extracting title from a URL

    Here is with removed dashes
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Extracting title from a URL

    Thank you Tony and AlKey for your help.
    It worked perfectly.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extracting title from a URL

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Show full path title in title bar?
    By Nor in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-11-2014, 02:26 PM
  2. Extracting Attachments from outlook based on subject title /file name and between a date
    By himynameisiain in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-14-2013, 02:14 PM
  3. [SOLVED] extracting column title from a table
    By tiger234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2012, 06:20 AM
  4. Replies: 12
    Last Post: 08-10-2012, 05:11 PM
  5. Replies: 2
    Last Post: 07-05-2007, 11:07 AM
  6. Replies: 2
    Last Post: 07-21-2006, 05:10 AM
  7. Replies: 1
    Last Post: 02-01-2006, 10:45 AM
  8. Pasting Objects into Chart title and Axis title
    By Sam in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-06-2005, 04:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1