+ Reply to Thread
Results 1 to 4 of 4

Need help nesting some formulas

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    35

    Need help nesting some formulas

    Hello. I'm trying to get some information from within a cell. As I'm working with URLs, the first bit is the same in all of them but I need to get the bit that's different isolated in a separate cell. Does anyone know a quicker way of doing this?

    For example:
    I cell A1 I have the full URL: /products/acrylic-colours/artists-acrylic-colour-/colour-chart/antique-gold/ ("antique-gold" is the bit of the URL I want to isolate).

    In cell B1 I have the formula:=SUBSTITUTE(A1,TRIM(RIGHT(LEFT(SUBSTITUTE(A1,"chart/",REPT(" ",100)),100),100)),"") which returns "chart/antique-gold/"

    In cell C1 I have the formula: =RIGHT(B1, LEN(B1)-6) which returns "antique-gold"

    Is there a way to combine these 3 formulas so in cell B1 I can get the result "antique-gold"? This needs to be scalable as well to hundreds of URLs. But what they all have in common is /products/acrylic-colours/artists-acrylic-colour-/colour-chart/ at the beginning and a backslash on the end.

    Thanks in advance.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need help nesting some formulas

    you may need to change the title of your thread
    see rules http://www.excelforum.com/forum-rule...rum-rules.html
    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more days have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.

    are you looking for the word Antique-gold in the string
    OR
    are you looking for whatever follows chart/

    it returns
    chart/antique-gold/
    and then
    antique-gold/

    =RIGHT(A1, LEN(SUBSTITUTE(A1,TRIM(RIGHT(LEFT(SUBSTITUTE(A1,"chart/",REPT(" ",100)),100),100)),""))-6)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    09-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Need help nesting some formulas

    My last message didn't seem to post...

    I am looking for whatever follows "chart/". Your formula worked really well thanks.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need help nesting some formulas

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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] Nesting Formulas
    By colbyjack in forum Excel General
    Replies: 10
    Last Post: 05-31-2012, 05:23 PM
  2. Nesting IF formulas
    By babydee0413 in forum Excel General
    Replies: 4
    Last Post: 02-19-2010, 06:03 PM
  3. Nesting of Formulas
    By mttlltt75 in forum Excel General
    Replies: 1
    Last Post: 06-05-2009, 11:12 AM
  4. Nesting formulas
    By msbing916 in forum Excel General
    Replies: 2
    Last Post: 07-30-2007, 11:13 AM
  5. [SOLVED] Nesting Formulas
    By PLCProgrammer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2005, 07:06 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