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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
=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,223,911
Messages
6,175,324
Members
452,635
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