+ Reply to Thread
Results 1 to 5 of 5

Parsing a specific string out of a URL

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    howell, michigan
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Parsing a specific string out of a URL

    Hi Everyone,

    I'm try to parse out an 8 digit code from URLs that look like this:

    http://www.healthyfood.com?csrc=PPCADW-healthyfood&ldd={ifsearch:s}{ifcontent:c}Q4nP8ZLc|pcrid|{creative}

    The code I'm trying to parse out is in red and starts after {ifcontent:c} and then ends before the | character. I know that I can use a combination of the "mid" and "search" functions, but I keep getting errors.

    Any suggestions would be greatly appreciated!

    Thanks,
    Jessica

  2. #2
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: Parsing a specific string out of a URL

    =MID(A1,FIND("{ifcontent:c}",A1,1)+13,FIND("|",A1,1)-(FIND("{ifcontent:c}",A1,1)+13))

    TRY THIS....!
    Regards,
    abdul

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Parsing a specific string out of a URL

    this macro will do that for you

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Parsing a specific string out of a URL

    Another way:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    howell, michigan
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Re: Parsing a specific string out of a URL

    This worked!!! Thank you so much Abdul!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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