Macro that can merge cells

BPTeam

New Member
Joined
May 14, 2013
Messages
4
Hi All,

So I have a data set similar to this:
ColA ColB ColC ColD
AAA
QQT64
AAAQQT91
AAAQQY55
AAAWWT8
AAAWWT89
AAAWWT80
AAAWWT92
AAAEEY39
AAAEEY11
BBBQQY58
BBBQQY6
BBBQQT44
BBBWWY71
BBBWWY
75
BBBWWT61
BBBWWT31
BBBWWY61
BBBWWY36
BBBEET89
BBBEET72

<colgroup><col style="width:48pt" span="4" width="64"> </colgroup><tbody>
</tbody>


and i want to make it more visual and easier to read, i want it to look like this:

AAA
QQT64
91
Y55
WWT8
89
80
92
EEY39
11
BBB
QQ58
6
T44
WW
Y71
75
T61
31
Y61
36
EET89
72

<colgroup><col style="width:48pt" span="4" width="64"> </colgroup><tbody>
</tbody>


Does anyone have a macro that can do this type of merging??
It would save me potentially hours of merging cells line by line.


Thanks in advance!!!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

<tbody>
AAAQQT64
91
Y55
WWT8
89
80
92
EEY39
11
BBBQQ58
6
T44
WWY71
75
T61
31
Y61
36
EET
89
72

<colgroup><col style="width:48pt" span="6" width="64"> </colgroup><tbody>
</tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,925
Members
449,094
Latest member
teemeren

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