Text to Columns with multiple delimiters

HughT

Board Regular
Joined
Jan 6, 2012
Messages
113
Office Version
  1. 365
Platform
  1. Windows
I wonder if you can help.

I have been tasked with extracting text from a CSV download from an app of a list of standard responses. As a download these contain multiple strings of characters such as:

<p>Hello {{ entity.person.display_name }}</p><p><br></p><p>Thank you for your reply.</p><p><br></p><p><p>

I want to be able to extract the text as:

Hello. Thank you for your reply.

The problem is that the text string lengths are random, the insertion and type of characters is random, the overall text length is random, and the text is all in one cell. Using Text to Columns enables one character at a time (such as <) which then creates a row of cells with the other character so the above text string now appears as (ie the < character has been deleted):

[TABLE="width: 704"]
<tbody>[TR]
[TD]p>Hello {{ entity.person.display_name }}[/TD]
[TD]/|p>[/TD]
[TD]|p>[/TD]
[TD]|br>[/TD]
[TD]|/p>[/TD]
[TD]|p>Thank |you for |your |reply.[/TD]
[TD]|/p>[/TD]
[TD]|p>[/TD]
[TD]|br>[/TD]
[TD]|/p>[/TD]
[TD]|p>
[/TD]
[/TR]
</tbody>[/TABLE]
It is possible to individually delete the contents of each cell and then concatenate the remaining text (and maybe then manually deleting other characters such as {{}} etc) but this is not realistic as there are more than a hundred of these.

Many thanks

HT
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,815
Messages
6,181,136
Members
453,021
Latest member
Justyna P

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