Text Before and After

normpam

Active Member
Joined
Oct 30, 2002
Messages
360
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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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