VBA Line up 3 Columns

anthonyexcel

Active Member
Joined
Jun 10, 2011
Messages
258
Office Version
  1. 365
Platform
  1. Windows
I have 3 sets of data that I need to line up. The columns are all sorted in alphabetical order . Please see below:
<style type="text/css">
table.tableizer-table {
border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #ccc;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</style>







Business Group ASales Business Group BSales Business Group CSales
A23 B86 D67
D5 C65 L8
G4 D453 M4
H65 I34 W2
K76 L23 X7
L87 M23 Z1

<tbody>
</tbody>


I need this:
<style type="text/css">
table.tableizer-table {
border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #ccc;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</style>














Business Group ASales Business Group BSales Business Group CSales
A23
B86
C65
D5 D453 D67
G4
H65
I34
K76
L87 L23 L8
M23 M4
W2
X7
Z1

<tbody>
</tbody>


Thanks in advance!
 
Thanks Mick! It's never to late. I always appreciate your input and knowledge. Thank you for sharing your knowledge.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Thank you all for your help. I appreciate all the help and guidance. Thanks you all again. The information is fantastic.
You are quite welcome. I found your question so intriguing that I created code for a completely generalized setup instead of the fixed setup you posted and then I posted in my mini-blog. Here is a link to that article...

<!-- title / author block --> [h=3]Align Data In Groups Of Columns[/h]
 
Upvote 0
Nice Rick! Thank you so much for posting the mini-blog. I am sure that many people will take advantage of your approach. Thank you again for all of your contributions in which I always find very intriguing. Thank you again! Have a wonderful day!
 
Upvote 0

Forum statistics

Threads
1,215,357
Messages
6,124,483
Members
449,165
Latest member
ChipDude83

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