Assuming the data is A2:C4, put this formula in B5 and then copy to the right:

=SUM(B$2:B$4) / SUMIF(B$2:B$4, "<>", $A$2:$A$4)