Removing specific HTML tags SUBSTITUTE specific text until ">" character. Multiple instance of the starting specific text in cell

Tardisgx

Board Regular
Joined
May 10, 2018
Messages
81
I need a formula that does substitute ALL "" with "" (including the > character)

<*span style..** .><*div style=...* *>
<*p style..** .>
<**div* *>
<*/div* >


(I added asteriks and spaces otherwise the tags cannot appear :P

Find and replace works for the last 2 but not the others at what occupies the ... is variable font and size information.

The tags may appear more than once in the cell then later on and there are many instances of > before the start text because im dealing with html text



I have this formula that says search A for the text in B and copy the text that's after B until the next ">"

=IFERROR(MID($A3,SEARCH(B$2,$A3)+LEN(B$2),SEARCH(">",$A3,SEARCH(B$2,$A3)+LEN(B$2))-LEN(B$2)-SEARCH(I$2,$A3)),FALSE)

Essentially I want to do the opposite? Instead of copy I want to substitute with ""-removing it- every instance of the start string.

I'm assuming for each tag search it'll just be a separate substitute formula Thank you
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,214,835
Messages
6,121,880
Members
449,057
Latest member
Moo4247

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