I need a formula: If (C1:C10=A1) and (D1:D10 or E1:E10=B1) then Sumproduct F1:F1 Thanks for your help in advance.