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):

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

<tbody>
</tbody>
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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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