ur_friend_mac
New Member
- Joined
- Apr 10, 2018
- Messages
- 2
Hello everyone!
I have after searching a while, and writing this post a few times due to browser issues, come to seek help.
I'm looking for a way (VBA or other) to combine duplicate rows while merging data streching over multiple columns. Not to sum the values, but to remove any duplicate (or blank) values (and rows). The data is spread over multiple sheets but can be copied into one to make things easier. I'll try to show an example below, please feel free to ask, as I am unsure if my goals are undestandable. The original data spreads over more columns than the example shown.
The solutions I have seen, and tried, has not achieved exactly what I'm after.
Thankful for any suggestions!
So I want this: (A2:A12)..
Item no. Shelf no. Order no. --->
[TABLE="class: grid, width: 192"]
<tbody>[TR]
[TD="width: 64, align: right"]111[/TD]
[TD="width: 64"] a[/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD] b[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]333[/TD]
[TD][/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]444[/TD]
[TD][/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD] b[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]444[/TD]
[TD] d[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]111[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]333[/TD]
[TD] c[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]111[/TD]
[TD][/TD]
[TD] 1[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]111[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
... To become this (order not specific):
[TABLE="class: grid, width: 192"]
<tbody>[TR]
[TD="width: 64, align: right"]111[/TD]
[TD="width: 64"] a[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD] b[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]333[/TD]
[TD] c[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]444[/TD]
[TD] d[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
Have a nice day!
I have after searching a while, and writing this post a few times due to browser issues, come to seek help.
I'm looking for a way (VBA or other) to combine duplicate rows while merging data streching over multiple columns. Not to sum the values, but to remove any duplicate (or blank) values (and rows). The data is spread over multiple sheets but can be copied into one to make things easier. I'll try to show an example below, please feel free to ask, as I am unsure if my goals are undestandable. The original data spreads over more columns than the example shown.
The solutions I have seen, and tried, has not achieved exactly what I'm after.
Thankful for any suggestions!
So I want this: (A2:A12)..
Item no. Shelf no. Order no. --->
[TABLE="class: grid, width: 192"]
<tbody>[TR]
[TD="width: 64, align: right"]111[/TD]
[TD="width: 64"] a[/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD] b[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]333[/TD]
[TD][/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]444[/TD]
[TD][/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD] b[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]444[/TD]
[TD] d[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]111[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]333[/TD]
[TD] c[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]111[/TD]
[TD][/TD]
[TD] 1[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]111[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
... To become this (order not specific):
[TABLE="class: grid, width: 192"]
<tbody>[TR]
[TD="width: 64, align: right"]111[/TD]
[TD="width: 64"] a[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]222[/TD]
[TD] b[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]333[/TD]
[TD] c[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]444[/TD]
[TD] d[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
Have a nice day!