Cleaning up and rearranging Text Data

Old_Cadger

New Member
Joined
Sep 3, 2014
Messages
1
Hi Guys.

I have vehicle fitment information provided to me by a manufacturer that needs to be rearranged so that it is usable by our system.

I am hoping that someone can help me out.

This is the information as it comes to me, it is in one cell.


<tbody>
</tbody>
CHEVROLET|||Year|Model|SubModel|Cylinders|Liter|Aspiration|Eng Desg.|Fuel|Notes|||2007 - 2013|AVALANCHE|ALL|ALL|ALL|ALL|ALL|ALL||||2002 - 2006|AVALANCHE 1500|ALL|ALL|ALL|ALL|ALL|ALL||||CHRYSLER|||Year|Model|SubModel|Cylinders|Liter|Aspiration|Eng Desg.|Fuel|Notes|||2005 - 2013|300|ALL|ALL|ALL|ALL|ALL|ALL||||GMC|||Year|Model|SubModel|Cylinders|Liter|Aspiration|Eng Desg.|Fuel|Notes|||1999 - 2013|SIERRA 1500|ALL|ALL|ALL|ALL|ALL|ALL||||2001 - 2007|SIERRA 1500 HD|ALL|ALL|ALL|ALL|ALL|ALL||||


The information is close to what I need.

I need to rearrange this information and add a line feed to each fitment type.
Year|Make|Model|Etc
I need the information to be as below in a cell with the line feed:

2007 - 2013|CHEVROLET|AVALANCHE|ALL|ALL|ALL|ALL|ALL|ALL
2002 - 2006|CHEVROLET|AVALANCHE 1500|ALL|ALL|ALL|ALL|ALL|ALL
2005 - 2013|CHRYSLER|300|ALL|ALL|ALL|ALL|ALL|ALL
1999 - 2013|GMC|SIERRA 1500|ALL|ALL|ALL|ALL|ALL|ALL
2001 - 2007|GMC|SIERRA 1500 HD|ALL|ALL|ALL|ALL|ALL|ALL

I am looking for a formula or VBA script that will identify the make and put it in the right location. And remove some unnecessary information and add carriage returns.

Thanks in advance.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,191,681
Messages
5,987,984
Members
440,124
Latest member
dippy_egg

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
Top