+ Reply to Thread
Results 1 to 7 of 7

Left Function Help

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    australia
    MS-Off Ver
    2007
    Posts
    10

    Left Function Help

    HI Guys,

    I am looking for a formula to only extract the category name form the following URLs.

    1. http://www.directbargains.com.au/exe...tness-1-1.html
    2. http://www.directbargains.com.au/binoculars-95-1.html
    3. http://www.directbargains.com.au/kettles-4477-1.html

    From the above URLs i need to extract only exercise-and-fitness, binoculars, kettles respectively.
    I have also attached the example sheet.

    Please Help.
    example.xlsx
    Thanks
    Last edited by james252; 03-14-2014 at 05:07 AM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Left Function Help

    Assuming that the URL is in A2 then

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    02-28-2014
    Location
    australia
    MS-Off Ver
    2007
    Posts
    10

    Re: Left Function Help

    Sorry, i forgot to attach the file, =MID(A2,FIND("*",SUBSTITUTE(A2,"/","*",3))+1,FIND("-",A2)-FIND("*",SUBSTITUTE(A2,"/","*",3))-1), only extracts the first name like exercise but not exercise-and-fitness. Here i am looking to extract the content between "http://www.directbargains.com.au/" and "1.html". Please also refer to the attached example.xls file.

    Thanks

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Left Function Help

    Try this.......

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-28-2014
    Location
    australia
    MS-Off Ver
    2007
    Posts
    10

    Re: Left Function Help

    Almost works, but still the formula is not working for the URLS below,

    http://www.directbargains.com.au/fra...39s-156-1.html - Please refer to row no. 116
    http://www.directbargains.com.au/men...ies-275-1.html - Please refer to row no. 213
    http://www.directbargains.com.au/tap...ets-202-1.html - Please refer to row no. 147 and so on....

    In above case the formula is only giving "fragrances-womenan", "menan", "tapsan" instead of "fragrances-womenand39s", "menand39s-accessories","tapsand44-misc-and-faucets" etc. Otherwise this the formula is working gr8.

    Thanks

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Left Function Help

    Hi
    My function is an array. Paste this to b2 cell and hit Ctrl+Shift+Enter

    =LEFT(SUBSTITUTE(A2,LEFT(A2,FIND("#",SUBSTITUTE(A2,"/","#",3))),""),MATCH(TRUE,ISNUMBER(IF(ISERROR(--MID(SUBSTITUTE(A2,LEFT(A2,FIND("#",SUBSTITUTE(A2,"/","#",3))),""),ROW($1:$50),1)),"",--MID(SUBSTITUTE(A2,LEFT(A2,FIND("#",SUBSTITUTE(A2,"/","#",3))),""),ROW($1:$50),1))),0)-2)
    Attached Files Attached Files
    Appreciate the help? CLICK *

  7. #7
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Left Function Help

    My previous formula will give you same error.
    Try this one
    =LEFT(SUBSTITUTE(A2,LEFT(A2,FIND("#",SUBSTITUTE(A2,"/","#",3))),""),FIND("#",SUBSTITUTE(SUBSTITUTE(A2,LEFT(A2,FIND("#",SUBSTITUTE(A2,"/","#",3))),""),"-","#",LEN(SUBSTITUTE(A2,LEFT(A2,FIND("#",SUBSTITUTE(A2,"/","#",3))),""))-LEN(SUBSTITUTE(SUBSTITUTE(A2,LEFT(A2,FIND("#",SUBSTITUTE(A2,"/","#",3))),""),"-",""))-1))-1)

+ 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. [SOLVED] How to nest a left function within a sumif function?
    By LisaK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2017, 09:21 AM
  2. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  3. HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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