Separate data within cell to different columns.

craigwojo

Active Member
Joined
Jan 7, 2005
Messages
272
Office Version
  1. 365
Platform
  1. Windows
I'm looking to take data in each cell within a column of cells and have the following columns (N,O,P,Q,R,S) take the data separated by (a space) and put it in the columns.

How can I do this?

Here is an example I made to show what I am looking for.

Thank you all so much and God bless.

Leprino Foods Tags Order Motor Numbers.xls
MNOPQ
1Lock numberPlace 1Place 2Place 3Place 4
2E1683 CV113-MT05 CV118-MT01E1683CV113-MT05CV118-MT01
3E1684 CV113-MT06 CV119-MT01E1684CV113-MT06CV119-MT01
4E1685 CV94-MT01E1685CV94-MT01
5E1686 CV120-MT01E1686CV120-MT01
Sheet1
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hello, one option could be:

Excel Formula:
=IFNA(DROP(REDUCE("",M2:M5,LAMBDA(a,b,VSTACK(a,TEXTSPLIT(b," ")))),1),"")
 
Upvote 0
Nevermind, I suppose this does not place the data starting in col N, but in M.

On the Data tab of the ribbon, use the Text to Columns tool and set the delimiter to space.
1724101226441.png
 
Upvote 0
=TEXTSPLIT(M2," ")

Copy down.

Book1
MNOPQ
1Lock numberPlace 1Place 2Place 3Place 4
2E1683 CV113-MT05 CV118-MT01E1683CV113-MT05CV118-MT01
3E1684 CV113-MT06 CV119-MT01E1684CV113-MT06CV119-MT01
4E1685 CV94-MT01E1685CV94-MT01
5E1686 CV120-MT01E1686CV120-MT01
Sheet1
Cell Formulas
RangeFormula
N4:O5,N2:P3N2=TEXTSPLIT(M2," ")
Dynamic array formulas.
 
Upvote 0
Use Power Query and Close and Load to appropriate column

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Delimiter" = Table.SplitColumn(Source, "Lock number", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"Lock number.1", "Lock number.2", "Lock number.3"})
in
    #"Split Column by Delimiter"
 
Last edited:
Upvote 0
I suppose this does not place the data starting in col N, but in M.
It can start in N.
  1. Select M2:M(last row)
  2. Data ribbon tab -> Text to Columns -> Delimited -> Next -> Select Space only -> Next -> Enter N2 as the Destination -> Finish

1724140280639.png
 
Upvote 0
Solution

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

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