Split a String in 3 columns for Characters and Numeric entries mixed

prkhan56

New Member
Joined
Feb 5, 2003
Messages
23
Dear All
I am using Excel 2016 and want to split a string mix of characters (C) and numbers (N) in three columns

Before (1 Column)
CC NNxNNNg CC
CCC NNxNNNg CCCC
CC CC CCCCC NNxNNNg CC
CCC NNxNNNg CC
CCCCCCC CCCC CC NNxNNNg CC
CC NNxNNNg CCCCCCCC
CCCC CCCCC NNxNNNg CCCCC CCCC
CCCCC CCCCCCC CCCCCC NNxNNNg CC
CC NNxNNNg CC

After in 3 Columns as follows:
I have put spaces between the three columns but it does not show on the post
1st Column 2nd Column 3rd Column
CC NNxNNNg CC
CCC NNxNNNg CCCC
CC CC CCCCC NNxNNNg CC
CCC NNxNNNg CC
CCCCCCC CCCC CC NNxNNNg CC
CC NNxNNNg CCCCCCCC
CCCC CCCCC NNxNNNg CCCCC CCCC
CCCCC CCCCCCC CCCCCC NNxNNNg CC
CC NNxNNNg CC

Just to explain further all the CCCs will be in the 1st Column and the NNxNNNg in second column and the last CCCs coming after the character g will be in third column
Any help would be appreciated
 
Last edited:

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Like this?


Book1
ABCD
1CC 12x345g CCCC12x345gCC
2CCC 23x456g CCCCCCC23x456gCCCC
3CC CC CCCCC 44x555g CCCC CC CCCCC44x555gCC
4CCC 66x666g CCCCC66x666gCC
5CCCCCCC CCCC CC 77x777g CCCCCCCCC CCCC CC77x777gCC
6CC 88x999g CCCCCCCCCC88x999gCCCCCCCC
7CCCC CCCCC 98x765g CCCCC CCCCCCCC CCCCC98x765gCCCCC CCCC
8CCCCC CCCCCCC CCCCCC 54x321g CCCCCCC CCCCCCC CCCCCC54x321gCC
9CC 11x222g CCCC11x222gCC
Sheet13
Cell Formulas
RangeFormula
B1=TRIM(LEFT(A1,AGGREGATE(15,6,FIND({0,1,2,3,4,5,6,7,8,9},A1),1)-1))
C1=TRIM(LEFT(SUBSTITUTE(SUBSTITUTE(A1,B1,""),"g",REPT(" ",LEN(A1))),LEN(A1)))&"g"
D1=TRIM(MID(A1,SEARCH("g",A1)+1,LEN(A1)))
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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