Text Before and After

normpam

Active Member
Joined
Oct 30, 2002
Messages
355
Is it possible to split out text based on multiple occurrences of specific delimiters?
Make believe example:
"Integrity - we are good people, honest, fair.", Relationships - We build relationships.", Communication - We are an open book; and honest.", Constantly evolve - we always improve

This text is repeated in multiple cells, with each of the segments between the .", characters in different sequences.

Have tried to use TEXTBEFORE and TEXTAFTER, but have been unable to get a clean result. Hope this makes sense... Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Using the below test pattern, I used in B7 the formula
Rich (BB code):
=TEXTSPLIT(B5,,"."",")
that splilled the 4 rows

If you prefer splilling to columns, use
Rich (BB code):
=TEXTSPLIT(B5,"."",")

MULTI_C30717.xlsm
ABCDEFGHI
4
5"Integrity - we are good people, honest, fair.", Relationships - We build relationships.", Communication - We are an open book; and honest.", Constantly evolve - we always improve
6
7"Integrity - we are good people, honest, fair
8 Relationships - We build relationships
9 Communication - We are an open book; and honest
10 Constantly evolve - we always improve
Foglio3
Cell Formulas
RangeFormula
B7:B10B7=TEXTSPLIT(B5,,"."",")
Dynamic array formulas.
 
Upvote 0
Using the below test pattern, I used in B7 the formula
Rich (BB code):
=TEXTSPLIT(B5,,"."",")
that splilled the 4 rows
If you modify this formula like below, it will remove the leading quote mark (if any) and leading spaces (if any) on each outputted row...
Excel Formula:
=TRIM(SUBSTITUTE(TEXTSPLIT(B5,,"."","),"""",""))
 
Upvote 0

Forum statistics

Threads
1,215,378
Messages
6,124,603
Members
449,174
Latest member
ExcelfromGermany

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