Splitting Text

EvonS

Board Regular
Joined
Jun 1, 2016
Messages
111
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Using Office365

I need a way to split up text like this "Appropriate, sustainable housing, Financial stability" into columns. The problem is that when I use =TEXTSPLIT(A1, ",") it splits up "Appropriate, sustainable housing" in to 2 separate columns when it should be one. I cannot change that text to exclude the comma unfortunately. Is there a way to:

1. Get TEXTSPLIT to ignore the comma after "Appropriate"?
2. Is there a way to get TEXTSPLIT to split based on capital letters?

Note: I can't change the delimiter but I can place each option I want to split in quotes.

Thanks in advance for the help.
 
First, I replace the combination of a comma/space/capital letter with a comma/space/capital letter/capital letter... then I split on the combination of a comma/space/capital letter. In other words, I double up the letter following a comma space and then split on the combination of a comma/space/capital letter. I need to do that because the delimiter (comma/space/capital letter) will be lost when the split occurs, so one of the two now doubled up letters will now remain after the split.
I would have never have thought of splitting based on a combination of characters. Thanks again. This helps my work a lot.
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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