Noobie here..Could use some help

ohman

New Member
Joined
Sep 8, 2011
Messages
2
I am trying to remove all the extra text around last part of the URL. For example, the first one I just want "16 flavor packets variety pack optimum gold standard 100 whey protein powder" as the final text.

Really would appreciate the help. Thanks!!


<option data-url="/store/16-flavor-packets-variety-pack-optimum-gold-standard-100-whey-protein-powder">16 Flavor Packets - Variety Pack</option>

<option data-url="/store/apple-cider-2-lbs-optimum-gold-standard-100-whey-protein-powder">Apple Cider - 2 lbs</option>

<option data-url="/store/apple-pie-2-lbs-optimum-gold-standard-100-whey-protein-powder">Apple Pie - 2 lbs</option>


....but with a LOT more of the same stuff (thousands), so i really need a function to fix it.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
=SUBSTITUTE(A1," ","") <--Paste this in B1 and drag to other cells as needed.

EDITED:
I think I misread your question. Please give an example of before and after text. Thanks.
 
Upvote 0
I am trying to remove all the extra text around last part of the URL. For example, the first one I just want "16 flavor packets variety pack optimum gold standard 100 whey protein powder" as the final text.

Really would appreciate the help. Thanks!!

****On the first post I didnt realize it didnt show the text below. Here is the text that I need edited.

HTML:
<option data-url="/store/16-flavor-packets-variety-pack-optimum-gold-standard-100-whey-protein-powder">16 Flavor Packets - Variety Pack</option>

HTML:
<option data-url="/store/apple-cider-2-lbs-optimum-gold-standard-100-whey-protein-powder">Apple Cider - 2 lbs</option>

HTML:
<option data-url="/store/apple-pie-2-lbs-optimum-gold-standard-100-whey-protein-powder">Apple Pie - 2 lbs</option>



....but with a LOT more of the same stuff (thousands), so i really need a function to fix it.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

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