Sub total a list
Posted: Fri Jun 22, 2012 9:48 pm
I have a list of the following data:
CounterKicks, 1000
CounterKicks, 900
BallisLife, 1200
BallisLife, 500
HoopMix, 1000
I need to write a loop so I can get a sub-total for each item (word 1 of the list).
My result s/b:
Counterkicks, 1900
Ballislife, 1700
HoopMix, 1000
I can get the loop to put 3 lines in my result with the correct names but I can't seem to get the amounts to add up correctly.
Any help would be greatly appreciated....
CounterKicks, 1000
CounterKicks, 900
BallisLife, 1200
BallisLife, 500
HoopMix, 1000
I need to write a loop so I can get a sub-total for each item (word 1 of the list).
My result s/b:
Counterkicks, 1900
Ballislife, 1700
HoopMix, 1000
I can get the loop to put 3 lines in my result with the correct names but I can't seem to get the amounts to add up correctly.
Any help would be greatly appreciated....
