Changing one term in a string question

TOMMY2

New Member
Joined
Jul 30, 2014
Messages
4
Hi guys,

Doing hundreds of UTM tracking codes and I need some help to shortcut.

Basically the codes are the same across all platforms, but one or more of the terms is different for each campaign.

An example:

https://homelet.co.uk/landlords/ins...x600&utm_content=spiky&utm_campaign=campaignB
https://homelet.co.uk/landlords/ins...1050&utm_content=spiky&utm_campaign=campaignB
https://homelet.co.uk/landlords/ins...x600&utm_content=spiky&utm_campaign=campaignB
https://homelet.co.uk/landlords/ins...1050&utm_content=spiky&utm_campaign=campaignB

The codes here would be the same, with the only change 'campaignC' and 'content=hard'.

I want to get the sum right, so how would I REPLACE any term with a new term across the entire document. And how would I replace multiple terms?

<colgroup><col></colgroup><tbody>
</tbody>

if anyone can get this right for me I'll pay you!

Thanks.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
So the "CampaignB" to "CampaignC" is very, very simple. Question though. With the content=hard...will you always be replacing content=spiky or are there other options?
 
Upvote 0
So the "CampaignB" to "CampaignC" is very, very simple. Question though. With the content=hard...will you always be replacing content=spiky or are there other options?

On this example the content & campaign will change, everything else stays the same:

https://homelet.co.uk/landlords/insurance-quote/step1?utm_source=adwords&utm_medium=displaynetwork&utm_term=160x60&utm_content=hard&utm_campaign=campaignA
https://homelet.co.uk/landlords/insurance-quote/step1?utm_source=adwords&utm_medium=displaynetwork&utm_term=468x60&utm_content=hard&utm_campaign=campaignA
https://homelet.co.uk/landlords/insurance-quote/step1?utm_source=adwords&utm_medium=displaynetwork&utm_term=200x200&utm_content=hard&utm_campaign=campaignA

thanks!

<colgroup><col></colgroup><tbody>
</tbody>
 
Upvote 0
On this example the content & campaign will change, everything else stays the same:

https://homelet.co.uk/landlords/insurance-quote/step1?utm_source=adwords&utm_medium=displaynetwork&utm_term=160x60&utm_content=hard&utm_campaign=campaignA
https://homelet.co.uk/landlords/insurance-quote/step1?utm_source=adwords&utm_medium=displaynetwork&utm_term=468x60&utm_content=hard&utm_campaign=campaignA
https://homelet.co.uk/landlords/insurance-quote/step1?utm_source=adwords&utm_medium=displaynetwork&utm_term=200x200&utm_content=hard&utm_campaign=campaignA

thanks!

<tbody>
</tbody>


Is this the REPLACE function?
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,842
Members
449,471
Latest member
lachbee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top