Split URL after certain text

lavezzi7

New Member
Joined
Dec 12, 2017
Messages
15
Hey guys,

I have a couple of URLs that contain the "origin?" text before the part I want to extract. For example:

wwwXXXX.com/ie-de/origin=10_se_Display_native
wwwXXXX.com/ia-de/de/origin=10_se_Display_on
wwwXXXX.com/ia-it/de/origin=10_se_Display_off

I want to create a new column containing the text after "origin=". In this case the new column should contain:

10_se_Display_native
10_se_Display_on
10_se_Display_off

Is there a formula to automatically get that? Please note that neither the part I want to get nor the other part has the same amount of characters among the URLs so I cannot use position-related formulas.

Any kind of help would be very much appreciated!

Thank you in advance!
 
Your link doesn't work for me and most of the time I am blocked form those at work.

Can you please just copy and paste in to here exactly what you are inputting in to excel.
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
So again, I've asked you to post, type, exactly what you are putting in and you haven't, so it is very hard to help you without that information.

What region are you in, some regions don't use the comma as a separator some use a semi-colon, you could try and replace any instances of a comma with a semi-colon and see if that works.

As well, please let us know what version of Excel you are using, that is in addition to your region.
 
Upvote 0
I don't see the file in the link.
 
Upvote 0
Does this formula work for you...

=TRIM(RIGHT(SUBSTITUTE(A1,"=",REPT(" ",300)),300))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

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