I need to remove duplicates from rows in excel sheet and also find the no of duplicates found in the current row.
[TABLE="width: 100"]
<tbody>[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]9[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]
Output:
1 2 5 3
6 5 4
6 9 5 4
Can it be achieved using an arrays.
Thanks and regards
~M
[TABLE="width: 100"]
<tbody>[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]9[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]
Output:
1 2 5 3
6 5 4
6 9 5 4
Can it be achieved using an arrays.
Code:
Dim ArrItem(100,50) as Integer
ArrItems(1) = ArrItems(1,2,5,1,3)
ArrItems(2) = ArrItems(6,5,4,6,5)
ArrItems(3) = ArrItems(6,9,5,4,9)
Thanks and regards
~M
Last edited: