A financial analyst needs to calculate the total sales for a specific product, 'Gadget', from a sales report. The product names are in column C (C2:C100) and the corresponding sales amounts are in column D (D2:D100). Which of the following formulas will correctly calculate the total sales for only the product 'Gadget'?
-
A
=SUMIF(C2:C100,"Gadget",D2:D100)
-
B
=SUM(D2:D100)
-
C
=IF(C2:C100="Gadget",SUM(D2:D100))
-
D
=COUNTIF(C2:C100,"Gadget")