Hi. Thanks for stopping by my post. I appreciate your time (and your genious of course).
Here's the setup: I have 3 columns (all others are hidden): "B" (Adgroup...think of this as "keywords"), "H" (destination url) and "AB" (sitemap urls).
Looking for a formula or array that I can paste into "H" that will take the existing url in "AB" that most closely matches "B" (see example in table below) AND the existing ".htm" (or .html if it's .html since these go to different pages) extension and rewrite just the destination URL portion in that same cell right there within "H" without changing anything else (even the ".htm" or ".html"). The matching sitemap url should also have the same ext (either .htm or .html) as in "H". A perfect match would be where a url within "AB" has all words match in order, no more or less, as column "B". Next best would be 1) singular or plural; 2) 1 extra word (on either side of the adgroup phrase) 3. etc.
Please note the sitemap will always have dashes added within their urls.
Example:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]Column B
[/TD]
[TD="align: center"]Column H
[/TD]
[TD="align: center"]Column AB
[/TD]
[/TR]
[TR]
[TD="align: center"](ad group column)[/TD]
[TD="align: center"](Destination URL column)[/TD]
[TD="align: center"](existing sitemap urls)[/TD]
[/TR]
[TR]
[TD]B2:B659[/TD]
[TD]H2:H659[/TD]
[TD]AB1:AB578[/TD]
[/TR]
[TR]
[TD]fresh apples[/TD]
[TD]http://www.fruit.com/badURL1.htm?src=google[/TD]
[TD]fresh-oranges.html[/TD]
[/TR]
[TR]
[TD]fresh oranges[/TD]
[TD]http://www.fruit.com/badURL2.html?src=google[/TD]
[TD]fresh-apples.html[/TD]
[/TR]
[TR]
[TD]fresh grapes[/TD]
[TD]http://www.fruit.com/badURL3.htm?src=google[/TD]
[TD]fresh-apples.htm[/TD]
[/TR]
[TR]
[TD]fresh strawberries[/TD]
[TD]http://www.fruit.com/badURL4.htm?src=google[/TD]
[TD]fresh-grapes.htm[/TD]
[/TR]
</tbody>[/TABLE]
You notice how column H urls have only 2 extensions: either .htm or .html
[TABLE="width: 567"]
<tbody>[TR]
[TD="class: xl64"][/TD]
[/TR]
</tbody>[/TABLE]
Same goes for the sitemap, Column AB, ie has those same 2 extensions (but, importantly, without the leading "http://www.fruit.com/" and without the trailing ?src=google . And sitemap urls will always have hyphens separating their "kw-rich-urls.htm" eg fresh-oranges.html or fresh-grapes.htm
Appreciate your help in creating a formula or array that I can paste down into some (not necessarily all) of the cells in column H, so that that dest URL changes update, live in that cell, to the *closest matching* url within our existing sitemap in column AB. I would like to keep columns the same for pasting back into editor.
In short, your formula or array will update the URL portion of column H's destination url so that it hunts for the sitemap url that contains the adgroup phrase (think exact match then phrase match, but never broad match), and ensuring the sitemap url found has the same extension as the existing destination url.
Thanks for your questions if you have any.
Here's the setup: I have 3 columns (all others are hidden): "B" (Adgroup...think of this as "keywords"), "H" (destination url) and "AB" (sitemap urls).
Looking for a formula or array that I can paste into "H" that will take the existing url in "AB" that most closely matches "B" (see example in table below) AND the existing ".htm" (or .html if it's .html since these go to different pages) extension and rewrite just the destination URL portion in that same cell right there within "H" without changing anything else (even the ".htm" or ".html"). The matching sitemap url should also have the same ext (either .htm or .html) as in "H". A perfect match would be where a url within "AB" has all words match in order, no more or less, as column "B". Next best would be 1) singular or plural; 2) 1 extra word (on either side of the adgroup phrase) 3. etc.
Please note the sitemap will always have dashes added within their urls.
Example:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]Column B
[/TD]
[TD="align: center"]Column H
[/TD]
[TD="align: center"]Column AB
[/TD]
[/TR]
[TR]
[TD="align: center"](ad group column)[/TD]
[TD="align: center"](Destination URL column)[/TD]
[TD="align: center"](existing sitemap urls)[/TD]
[/TR]
[TR]
[TD]B2:B659[/TD]
[TD]H2:H659[/TD]
[TD]AB1:AB578[/TD]
[/TR]
[TR]
[TD]fresh apples[/TD]
[TD]http://www.fruit.com/badURL1.htm?src=google[/TD]
[TD]fresh-oranges.html[/TD]
[/TR]
[TR]
[TD]fresh oranges[/TD]
[TD]http://www.fruit.com/badURL2.html?src=google[/TD]
[TD]fresh-apples.html[/TD]
[/TR]
[TR]
[TD]fresh grapes[/TD]
[TD]http://www.fruit.com/badURL3.htm?src=google[/TD]
[TD]fresh-apples.htm[/TD]
[/TR]
[TR]
[TD]fresh strawberries[/TD]
[TD]http://www.fruit.com/badURL4.htm?src=google[/TD]
[TD]fresh-grapes.htm[/TD]
[/TR]
</tbody>[/TABLE]
You notice how column H urls have only 2 extensions: either .htm or .html
[TABLE="width: 567"]
<tbody>[TR]
[TD="class: xl64"][/TD]
[/TR]
</tbody>[/TABLE]
Same goes for the sitemap, Column AB, ie has those same 2 extensions (but, importantly, without the leading "http://www.fruit.com/" and without the trailing ?src=google . And sitemap urls will always have hyphens separating their "kw-rich-urls.htm" eg fresh-oranges.html or fresh-grapes.htm
Appreciate your help in creating a formula or array that I can paste down into some (not necessarily all) of the cells in column H, so that that dest URL changes update, live in that cell, to the *closest matching* url within our existing sitemap in column AB. I would like to keep columns the same for pasting back into editor.
In short, your formula or array will update the URL portion of column H's destination url so that it hunts for the sitemap url that contains the adgroup phrase (think exact match then phrase match, but never broad match), and ensuring the sitemap url found has the same extension as the existing destination url.
Thanks for your questions if you have any.
Last edited by a moderator: