collect cells from different cells if another cell is equal.

orjanmen

New Member
Joined
May 21, 2014
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi, I got a sheet where each order are splitted into one row per item. I would like to collect all items from same order into one row - is this possible?

FROM THIS:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Order[/TD]
[TD]Item[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]4567[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]4567[/TD]
[TD]Brown[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Orange[/TD]
[/TR]
</tbody>[/TABLE]


TO THIS:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Order[/TD]
[TD]Item[/TD]
[TD]Item2[/TD]
[TD]Item3[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Red[/TD]
[TD]Yellow[/TD]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]4567[/TD]
[TD]Blue[/TD]
[TD]Brown[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Yellow[/TD]
[TD]Red[/TD]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]4567[/TD]
[TD]Brown[/TD]
[TD]Blue[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Orange[/TD]
[TD]Red[/TD]
[TD]Yellow[/TD]
[/TR]
</tbody>[/TABLE]

- OR THIS -
[TABLE="width: 500"]
<tbody>[TR]
[TD]Order[/TD]
[TD]Item[/TD]
[TD]Item2[/TD]
[TD]Item3[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Red[/TD]
[TD]Yellow[/TD]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]4567[/TD]
[TD]Blue[/TD]
[TD]Brown[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Would love some help With this one.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Thank you so much. Not always so easy to find something when you don't know what to search for ;-)
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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