Move cells into catergories

steffen82

New Member
Joined
Jan 26, 2017
Messages
4
Hi

Someone's help would be very appreciated. I have a list of addresses where there are multiple street names and all of them have a different house number in the cell to the left of street name. I would like all of the house numbers to come under the street name. I have removed duplicates of street names and transposed them from column to top row.

Below is an example of what I would like to happen (with a formula a bit like a vlookup or an array)

[TABLE="width: 448"]
<tbody>[TR]
[TD="colspan: 2"]How Data Looks[/TD]
[TD][/TD]
[TD="colspan: 3"]How would like data to look[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sheet 1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Sheet 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD][/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD]House 1[/TD]
[TD]Street 1[/TD]
[TD][/TD]
[TD]Street 1[/TD]
[TD]Street 2[/TD]
[TD]Street 3[/TD]
[TD]Street 4[/TD]
[/TR]
[TR]
[TD]House 2[/TD]
[TD]Street 1[/TD]
[TD][/TD]
[TD]House 1[/TD]
[TD]House 1[/TD]
[TD]House 1[/TD]
[TD]House 1[/TD]
[/TR]
[TR]
[TD]House 3[/TD]
[TD]Street 1[/TD]
[TD][/TD]
[TD]House 2[/TD]
[TD]House 2[/TD]
[TD]House 2[/TD]
[TD]House 2[/TD]
[/TR]
[TR]
[TD]House 4[/TD]
[TD]Street 1[/TD]
[TD][/TD]
[TD]House 3[/TD]
[TD]House 3[/TD]
[TD]House 3[/TD]
[TD]House 3[/TD]
[/TR]
[TR]
[TD]House 1[/TD]
[TD]Street 2[/TD]
[TD][/TD]
[TD]House 4[/TD]
[TD]House 4[/TD]
[TD]House 4[/TD]
[TD]House 4[/TD]
[/TR]
[TR]
[TD]House 2[/TD]
[TD]Street 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]House 5[/TD]
[TD]House 5[/TD]
[/TR]
[TR]
[TD]House 3[/TD]
[TD]Street 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 4[/TD]
[TD]Street 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 1[/TD]
[TD]Street 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 2[/TD]
[TD]Street 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 3[/TD]
[TD]Street 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 4[/TD]
[TD]Street 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 5[/TD]
[TD]Street 3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 1[/TD]
[TD]Street 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 2[/TD]
[TD]Street 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 3[/TD]
[TD]Street 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 4[/TD]
[TD]Street 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]House 5[/TD]
[TD]Street 4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col span="7"></colgroup>[/TABLE]
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Welcome to the MrExcel board!

I have done this on a single sheet. Hopefully you can adapt to get the results on to a second sheet if it does what you want.

Formula in H2 is copied across and down.

Excel Workbook
EFGHIJK
1House 1Street 1Street 1Street 2Street 3Street 4
2House 2Street 1House 1House 1House 1House 1
3House 3Street 1House 2House 2House 2House 2
4House 4Street 1House 3House 3House 3House 3
5House 1Street 2House 4House 4House 4House 4
6House 2Street 2House 5House 5
7House 3Street 2
8House 4Street 2
9House 1Street 3
10House 2Street 3
11House 3Street 3
12House 4Street 3
13House 5Street 3
14House 1Street 4
15House 2Street 4
16House 3Street 4
17House 4Street 4
18House 5Street 4
19
Rearrange
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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