If Store is in Column A, and Product is in Column B, and Quantity is in Column C, then the formula:
=SUMIFS(C:C, B:B, B2, A:A, A2)
where 2 is the row that you're entering the formula into. i.e. if the first entry starts on row 3 or 4, use that instead of 2.