Hi,
Please check whether the following solution is helpful:
Formula in cell D1 is: =SUM(A1:C1)-SUMIF(A3:C3,TRUE,A1:C1)
Please respond if You require further assistance. I will try My best to be of help.
If I was able to help You, please mark My response as answer and helpful.
Thank You!