Hi guys,
I'm trying to create a function that looks at column 1 which has values as below for example
and sums corresponding value in column 2.
column 1 has duplicates and I wanted to sum the second column value for every unique column 1 value.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1000[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to create a function that looks at column 1 which has values as below for example
and sums corresponding value in column 2.
column 1 has duplicates and I wanted to sum the second column value for every unique column 1 value.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1000[/TD]
[/TR]
</tbody>[/TABLE]