Parsing variable data into columns not using text to columns

pmcsherry

New Member
Joined
Sep 4, 2014
Messages
4
I want to run a text to columns function on the data to parse it from one cell and move it to multiple cells. For example, I want a cell that takes the data inside parentheses and displays into multiple cells (e.g. Ford Ranger, Ford, 2001). The text to columns function doesn't work well since the data isn't even across columns and if you do a delimited text to columns function it makes columns for the data I don't need (e.g. [{model"=>).

[{"model"=>"FORD RANGER", "make"=>"FORD", "year"=>"2001"}, {"year"=>"2011", "make"=>"HONDA", "model"=>"ACCORD"}, {"year"=>"2004", "make"=>"BUICK", "model"=>"REGAL"}]

<colgroup><col width="85" style="width:85pt"> </colgroup><tbody>
<!--StartFragment-->
<!--EndFragment-->
</tbody>
[{"model"=>"JEEP CHEROKEE", "make"=>"JEEP", "year"=>"2000"}, {"year"=>"2003", "make"=>"TOYOTA", "model"=>"CELICA"}, {"year"=>"2001", "make"=>"JEEP", "model"=>"CHEROKEE"}, {"year"=>"1998", "make"=>"FORD", "model"=>"RANGER"}]

<colgroup><col width="85" style="width:85pt"> </colgroup><tbody>
<!--StartFragment-->
<!--EndFragment-->
</tbody>
[{"model"=>"SATURN L-SERIES", "make"=>"SATURN", "year"=>"2000"}]

<colgroup><col width="85" style="width:85pt"> </colgroup><tbody>
<!--StartFragment-->
<!--EndFragment-->
</tbody>

<tbody>
</tbody>

Ideally, I'd like columns that looked like this of the above data but in multiple columns/rows.
Model 1Make 1Year 1Year 2Make 2Model 2Year 3Make 3Model 3Year 4Make 4Model 4Year 5Make 5Model 5
TOYOTA PICKUPTOYOTA19942004FORDESCAPE2001FORDF-1502000FORDTAURUS1994CHEVROLETS-10
GMC SIERRA 1500GMC19922000HYUNDAISONATA1988BUICKREGAL
LINCOLN CONTINENTALLINCOLN19921995FORDTHUNDERBIRD

<colgroup><col><col span="4"><col><col span="9"></colgroup><tbody>
</tbody>

<tbody>
</tbody>

What is the proper function/formula to parse data from 1 cell to multiple cells and be able to drop unnecessary data?

Thanks,
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hello,

YOu could get rid of all the unwanted characters, and then text to columns using comma as delimiter.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"{",""),"}",""),"[",""),"]",""),CHAR(34)&"make"&CHAR(34)&"=>",""),CHAR(34)&"model"&CHAR(34)&"=>",""),CHAR(34)&"year"&CHAR(34)&"=>",""),CHAR(34),"")

will reduce to a comma delimited string.
 
Upvote 0
If you wanted to try a direct formula approach, try this, copied across and down.

Excel Workbook
ABCDEFGHIJKLMN
2[{"model"=>"FORD RANGER", "make"=>"FORD", "year"=>"2001"}, {"year"=>"2011", "make"=>"HONDA", "model"=>"ACCORD"}, {"year"=>"2004", "make"=>"BUICK", "model"=>"REGAL"}]FORD RANGERFORD20012011HONDAACCORD2004BUICKREGAL
3[{"model"=>"JEEP CHEROKEE", "make"=>"JEEP", "year"=>"2000"}, {"year"=>"2003", "make"=>"TOYOTA", "model"=>"CELICA"}, {"year"=>"2001", "make"=>"JEEP", "model"=>"CHEROKEE"}, {"year"=>"1998", "make"=>"FORD", "model"=>"RANGER"}]JEEP CHEROKEEJEEP20002003TOYOTACELICA2001JEEPCHEROKEE1998FORDRANGER
4[{"model"=>"SATURN L-SERIES", "make"=>"SATURN", "year"=>"2000"}]SATURN L-SERIESSATURN2000
Split Text
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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