Hi there...... I am trying to compile a large amount of data, and trying to make life a little easier.

As an example, I have right now:
part a 1
part a 2
part a 3
part b 1
part b 2
part c 1
part c 2
part c 3

I am trying to compile it all so with a few clicks (hopefully) it will then read:
part a 6
part b 3
part c 6


Please help!!