+ Reply to Thread
Results 1 to 3 of 3

Formula or VBA: Update column H with the closest-matching column AB URL to Column B

  1. #1
    Registered User
    Join Date
    01-17-2015
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    27

    Formula or VBA: Update column H with the closest-matching column AB URL to Column B

    We have some adwords destination urls that need updating. The sitemap, on the other hand, is up to date with kw-rich-urls. We want the destination urls in column H to be updated with the closest matching url in the sitemap (column AB) that best matches the kw (well, ad group--same thing here) in column "B". Here's an example using some generic fruit:


    OVERVIEW: We need to update our destination urls (Column H) within Adwords, and we want to do that with the far more accurate kw-rich, existing SITEMAP urls (Column AB)

    Something that may or may not be pertinent re formula vs VBA: the destination URLs that need updating are: H170:H580 and H635:H659, in other words a lot of the cells in H already have a good destination url, so we don't want to undo those if at all possible. Also it's ok to make an additional working column for "H" if necessary, and we can copy the values back over to H later. Here's the criteria we're looking for in the following order for "CLOSEST MATCHING" url in AB to the kw in B. The OUTPUT should ideally replace the current urls in H with the closest matching sitemap url to the kw in B, and keep the general format of the urls shown in H.

    RULE 1--We want the formula to find the existing sitemap url that's the CLOSEST MATCH to the kw (ad group) in Column B

    RULE 2 -- "Closest match" criteria to use:

    a. BEST MATCH = exact match
    b. NEXT BEST MATCH (nbm) = exact match but with or without the plural being the difference
    c. NEXT BEST MATCH = PHRASE match (using Google's definition we all know), eg term = 1-2, so 1-2-3 or 0-1-2-3 might be closest matching sitemap url
    d. nbm = Phrase with plural variants

    RULE 3--NO MATCH using any of the above criteria: In those rare cases, use this landing page we’ll provide you later.

    RULE 4--"What if I have 2 sitemap urls that are identical, but one has .htm and the other .html?

    Answer: Choose the .html one.

    Questions are welcomed. Thank you.

  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,938

    Re: Formula or VBA: Update column H with the closest-matching column AB URL to Column B

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    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
    Registered User
    Join Date
    01-17-2015
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Formula or VBA: Update column H with the closest-matching column AB URL to Column B

    Sample table attached, thank you.

    By the way, this text field is very hard to work with. Maybe you can fix the drag to width tool in the lower right of this text field to include horizontal adjustment, and not just vertical {ENTER}

    I'm back now.

    Thanks.

    IO4IZE
    Attached Files Attached Files

+ 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. Replies: 25
    Last Post: 05-12-2014, 09:40 AM
  2. [SOLVED] Matching closest name from column
    By jyothijayanna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2013, 10:56 AM
  3. matching inputted names in excel column with the closest possible name in the database ws
    By TaskinRahman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-23-2012, 11:41 PM
  4. Replies: 5
    Last Post: 01-18-2012, 08:33 AM
  5. Replies: 1
    Last Post: 07-25-2011, 01:07 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