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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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