grouping and accumulating in a table
Posted: Thu Aug 07, 2008 1:47 am
I have the following information which I have have got from a fld.
Alpha 200, Beta 100, Charlie 300, Delta 400, Alpha 100, Charlie 300
I want to use a repeat loop to put them into another table with the names in the first column and numbers totaled by name in the 2nd column. I have managed to get:
Alpha 200
Beta 100
Charlie 300
Delta 400
Alpha 100
Charlie 300
but what I really want is:
Alpha 300
Beta 100
Charlie 600
Delta 400
Any suggestions?
I have almost got it to work but end up with gaps in the name column and superfluous info in the number column of the same line.[/code]
Alpha 200, Beta 100, Charlie 300, Delta 400, Alpha 100, Charlie 300
I want to use a repeat loop to put them into another table with the names in the first column and numbers totaled by name in the 2nd column. I have managed to get:
Alpha 200
Beta 100
Charlie 300
Delta 400
Alpha 100
Charlie 300
but what I really want is:
Alpha 300
Beta 100
Charlie 600
Delta 400
Any suggestions?
I have almost got it to work but end up with gaps in the name column and superfluous info in the number column of the same line.[/code]