IF(条件)和(另一个条件)递增单元格

IF (Condition) and (another condition) increment cell

我有两个电子表格:

第一个:

 **Type**   **Quantity**
  Games        1 
  Games        1
  Games        2
   DVD         1

第二个:

 **Type**   **Increment**  
    DVD
   Games

我想要 Second one 中的嵌套 IF 语句,如果 TypeDVD,将对 First One 中相应的 Quantity 值求和,并且Games 也类似。我的示例的预期结果分别为 14

任何帮助将不胜感激!

假设 Type 在每个 sheet 的 A1 中,请尝试:

=SUMIF('First One'!A:A,A2,'First One'!B:B)