I'm trying to sum up the amounts only if the id# is the same. how can I do that? here is the data.
col1 col2 col3
id# Amt1 | Amt2
1 1 | 1
1 2 | 1
1 1 | 2
2 2 | 1
3 -2 | -1 <- negative amt
1 -1 | -1 <- negative amt
2 2 | 2
3 3 | 1
4 1 | 1
id# total
1 6
2 7
3 1
4 2
col1 col2 col3
id# Amt1 | Amt2
1 1 | 1
1 2 | 1
1 1 | 2
2 2 | 1
3 -2 | -1 <- negative amt
1 -1 | -1 <- negative amt
2 2 | 2
3 3 | 1
4 1 | 1
id# total
1 6
2 7
3 1
4 2