Help needed! Automated grouping and re-ordering

un_RRL

New Member
Joined
Nov 10, 2016
Messages
2
Hi all, any help is appreciated

Basically I would like to get a large amount records from this format (example) -

[TABLE="width: 179"]
<tbody>[TR]
[TD]Names[/TD]
[TD]Addresses[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]xxx1[/TD]
[/TR]
[TR]
[TD]RR[/TD]
[TD]xxx1[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]xxx1[/TD]
[/TR]
[TR]
[TD]DD[/TD]
[TD]xxx1[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]xxx2[/TD]
[/TR]
[TR]
[TD]FF[/TD]
[TD]xxx2[/TD]
[/TR]
[TR]
[TD]GG[/TD]
[TD]xxx3[/TD]
[/TR]
[TR]
[TD]HH[/TD]
[TD]xxx3[/TD]
[/TR]
[TR]
[TD]KK[/TD]
[TD]xxx3[/TD]
[/TR]
[TR]
[TD]JJ[/TD]
[TD]xxx4[/TD]
[/TR]
</tbody>[/TABLE]

To this -

[TABLE="width: 519, align: left"]
<tbody>[TR]
[TD]Name 1[/TD]
[TD]Name 2[/TD]
[TD]Name 3[/TD]
[TD]Name 4[/TD]
[TD]Address[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]RR[/TD]
[TD]CC[/TD]
[TD]DD[/TD]
[TD]xxx1[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]FF[/TD]
[TD][/TD]
[TD][/TD]
[TD]xxx2[/TD]
[/TR]
[TR]
[TD]GG[/TD]
[TD]HH[/TD]
[TD]KK[/TD]
[TD][/TD]
[TD]xxx3[/TD]
[/TR]
[TR]
[TD]JJ[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]xxx4[/TD]
[/TR]
</tbody>[/TABLE]








Essentially grouping individuals by addresses in common and re-ordering the names into columns.

There could be more than 4 names per addresses in common so more columns would be needed as required.

I’ve experimented with Pivot tables and the Transpose function but no luck so far. Pivot tables produce something close to what I would like, but I was not able to automate the name reorganization into columns process, and the resulting spreadsheet needs to be in a plain format.

I've tried to delve into VBA to solve this but I need to learn a lot more before I can make a meaningful attempt at coding a solution to this on my own.

Thanks in advance!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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