Split data from cells

jimonfly

New Member
Joined
May 7, 2011
Messages
21
Due to an exporting problem with a program I am using for lease analysis, I am getting data from three fields exporting into one cell during a CSV export. This then throws off all of my other columns off by 2 cells.

Is there a way to split the information in this cell into three cells so I can import the data into a predefined table?

If it matters, the original fields are a suite size (number), start date (MM/DD/YY) and expiration date (MM/DD/YY). The exported cells contain the number, followed by 5 spaces, the date, followed by four spaces. This changes if the month is a single digit, in which case the space count is increased by one.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Select the data, Data > Text to Columns, select Delimited, specify Space as the delimiter, check Treat successive delimiters as one then click Finish.
 
Upvote 0
Thanks, that's what I needed. Is there a way to have it insert cells and push the data to the right? The only option I see is to overwrite the data in the existing cells. If not, I can probably work something out in VBA.

Jim
 
Upvote 0
Try selecting the cells, running the macro below, then doing Text to Columns

Code:
Sub InsCols()
Selection.Offset(, 1).Resize(, 2).Insert shift:=xlToRight
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,550
Members
452,927
Latest member
rows and columns

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