Addition of merged row

Hi,

I want to know how can i merge the cells of the same column having same value?
inp

Merge