Turn 1 column into 2 columns

Liliquestionsxlxs

New Member
Joined
Mar 2, 2022
Messages
17
Office Version
  1. 2021
Platform
  1. Windows
I have this column and I want to automatically make it become two columns where the / divides the two distinct data points

.103/.104
.103/.106
.099/.100
.101/.102
.099/.101
.098/.100
.096/.103
.100/.102
.098/.100
.100/.102
.098/.100
.100/.102
.093/.094
.094/.095
.092/.094
.092/.094
.091/.094
.094/.095
.092/.095
.094/.094
.090/.091
.093/.094
.095/.096
.092/.092
.093/.094
.091/.095
.091/.093
.091/.092
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Could use the text to columns feature, or use formulas, or use Power Query. Formulas and PQ below.

BookII.xlsm
ABCDEF
1ValuesValue AValue BValues.1Values.2
2.103/.104.103.104.103.104
3.103/.106.103.106.103.106
4.099/.100.099.100.099.100
5.101/.102.101.102.101.102
6.099/.101.099.101.099.101
7.098/.100.098.100.098.100
8.096/.103.096.103.096.103
9.100/.102.100.102.100.102
10.098/.100.098.100.098.100
11.100/.102.100.102.100.102
12.098/.100.098.100.098.100
13.100/.102.100.102.100.102
14.093/.094.093.094.093.094
15.094/.095.094.095.094.095
16.092/.094.092.094.092.094
17.092/.094.092.094.092.094
18.091/.094.091.094.091.094
19.094/.095.094.095.094.095
20.092/.095.092.095.092.095
21.094/.094.094.094.094.094
22.090/.091.090.091.090.091
23.093/.094.093.094.093.094
24.095/.096.095.096.095.096
25.092/.092.092.092.092.092
26.093/.094.093.094.093.094
27.091/.095.091.095.091.095
28.091/.093.091.093.091.093
29.091/.092.091.092.091.092
Sheet10
Cell Formulas
RangeFormula
B2:B29B2=LEFT(A2,FIND("/",A2)-1)
C2:C29C2=RIGHT(A2,LEN(A2)-FIND("/",A2))


Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Split = Table.SplitColumn(Source, "Values", Splitter.SplitTextByDelimiter("/", QuoteStyle.Csv), {"Values.1", "Values.2"})
in
    Split
 
Upvote 0
If your data is always like that, you could also use
Fluff.xlsm
ABC
1
2.103/.1040.1030.104
3.103/.1060.1030.106
4.099/.1000.0990.1
5.101/.1020.1010.102
6.099/.1010.0990.101
7.098/.1000.0980.1
8.096/.1030.0960.103
9.100/.1020.10.102
10.098/.1000.0980.1
11.100/.1020.10.102
12.098/.1000.0980.1
13.100/.1020.10.102
14.093/.0940.0930.094
15.094/.0950.0940.095
16.092/.0940.0920.094
17.092/.0940.0920.094
18.091/.0940.0910.094
19.094/.0950.0940.095
20.092/.0950.0920.095
21.094/.0940.0940.094
22.090/.0910.090.091
23.093/.0940.0930.094
24.095/.0960.0950.096
25.092/.0920.0920.092
26.093/.0940.0930.094
27.091/.0950.0910.095
28.091/.0930.0910.093
29.091/.0920.0910.092
Main
Cell Formulas
RangeFormula
B2:C29B2=MID(A2,{1,6},4)+0
Dynamic array formulas.
 
Upvote 0
@Fluff Haven't seen mid used that way yet, cool. Dynamic array formulas won't be available in XL 2021 though, right?
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,378
Members
449,097
Latest member
Jabe

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