= SUM(IF(B2:b 100 & amp; C2:C 100= " ",,IF(MATCH(B2:B 100,B2:B 100,)=ROW( 1:99),C2:C 100))
Supplementary Formula 2: Because the same figure in your drawings corresponds to the same amount, I wonder if there are cases where the same figure is different? If so, use Equation 2. Please refer to the drawings for details. ?
This sum formula 1 is an array formula.
= SUM(IF(B2:b 100 & amp; C2:C 100= "",if (matching (B2: b100&; C2:C 100,B2:b 100 & amp; C2:C 100,)=ROW( 1:99),C2:C 100)))?