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:

A V AUTO SALES is in cell A2The end goal is:
AV Auto in cell B2
Sales in B3

Here's another:
R & D MOTORS
goal is:
R&D
Motors

<tbody>
</tbody>

<tbody>
</tbody>


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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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