Splitting single cell data with no pattern

tenbusi

New Member
Joined
Sep 20, 2016
Messages
23
Hi all,

I have a sheet where i need to split messy data in a single cell ending up with two clean cells.

Here's an example:

[TABLE="width: 299"]
<tbody>[TR]
[TD="width: 299"]A V AUTO SALES is in cell A2The end goal is:
AV Auto in cell B2
Sales in B3

Here's another:
[TABLE="width: 299"]
<tbody>[TR]
[TD="width: 299"]R & D MOTORS
goal is:
R&D
Motors[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


There may be variations of how that data is spaced, how many spaces there will be, etc. Once all the data is split cleanly, i'll need to make sure the combined characters of both cells is 19 or less. I believe that can be done after the fact, but wanted to include it in case it can be performed in the same operation.

THANKS FOR THE HELP!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
i was hoping that wouldn't be the case!

What about if i remove all spaces, trim to 19 characters, then split the cells evenly. That may be ok for my purposes. what is the best formula(s) to achieve that goal?
 
Upvote 0
With just 2 examples to look at, the only pattern I can see is the split is before the last word in the cell (before Sales, and before Motors)
Is that consistent?
 
Upvote 0
Unfortunately no. There are others that have trailing data/last words may or may not be significant. I think i may be able to combine all the data, trim to 19 characters, then split in half. it will look messy, but may be the best non-manual solution.
 
Upvote 0
You can do that like this
Original string in A2
B2: =LEFT(SUBSTITUTE(A2," ",""),10)
C2: =MID(SUBSTITUTE(A2," ",""),11,9)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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