I have a excel file like this

in column a ，if the cell is same and in column c the data1 is the same， then add the data2 into one cell ，the result like this

anyone could help me ？ give me a demo xaml code， thanks a lot in advance！！！

pay attention： only the row name is the same ， and the number in row data1 is the same， we just add the number in data2， if name is the same，but the number in data1 is not the same ，we do not add， anyone could help me ？ thanks a lot in advance！！！