How to deal excel problem, if row a and row b is same ,the sum the row c number

Have a look here for the different option of grouping data