Excel 2010 Macro: Manipulating a string of data within a cell

vincent2013

New Member
Joined
Feb 13, 2013
Messages
1
Hello,

I am pretty new to Excel Macros. I've been searching the net and found this forum to be VERY helpful; not quite able to find exactly what I need.

My question refers to vehicle fitment for auto parts I have compiled, however need to manipulate the data further.

Example (fitment data for "windshield wiper"):
Cell A1 (data below belongs in one cell):

Ford F150 2009
Ford F150 2008
Ford F150 2007
Ford F150 2006
Ford F150 2005
Ford Mustang 2006
Ford Mustang 2004
Ford Mustang 2005

I am looking for a macro which will compile the data in this cell.

Looking for the following result in cell B1:

Ford F150 2005-2009
Ford Mustang 2004-2006

Essentially I want to combine all of the fitment data for same model vehicle in one line.

Your help will be truly appreciated!
smile.gif


-Vincent
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,531
Messages
6,120,073
Members
448,943
Latest member
sharmarick

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