Do someone know how to complete this function in excel?

The value of one cell is the sum of values of other cells. When I click the sum cell, rows including those related cells will be highlighted.