Replacing Part of Text with Another Part of Same Cell

Meatballsub

New Member
Joined
Feb 21, 2018
Messages
7
Hello!

I'm hoping someone can help me with my current problem. I have thousands of cells that look like this:

[TABLE="width: 983"]
<tbody>[TR]
[TD="width: 983"]<a *******="viewer.setParameter('SceneUrl', 'units/models/nomodel.stl');viewer.init(); viewer.update();" >Unit-Model-Here</a>[/TD]
[/TR]
</tbody>[/TABLE]

What I'd like to do is replace the "nomodel" text above with whatever is between <a....></a> (in this case, it is Unit-Model-Here).

I've looked in other threads and have tried to adapt solutions from there, but have yet to figure out a working one. Any help would be much appreciated.
 
I ended up just removing the bad characters with find/replace, so I should be good now. But I will be doing more of this in the next day or so. If the problem crops up again, I'll be sure to revisit this thread and provide the dropbox as requested. Thanks again for all of your help, Rick.
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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