Condition - Function SUMIF

Page visited 24762 times

 
1. This function is like COUNTIF but one more parameter

The function has 3 parameters : the range of cells where are the criteria, the criteria himself, the range of cells to add
Excel-Exercise-Tutorial-1
 
 
 
2. For instance, you want to know the quantity of Pencil sold
Excel-Exercise-Tutorial-2
 
 
3. Write the name of the function
Excel-Exercise-Tutorial-3
Formule de la cellule
=SUMIF (
 
 
4. Select the range of cells where are the criteria "Pencil"
Excel-Exercise-Tutorial-4
Formule de la cellule
B3:B12
 
 
5. Select the criteria.
Until now, there is no difference with the function COUNTIF
Excel-Exercise-Tutorial-5
Formule de la cellule
"Pencil"
 
 
6. Last step, you select the range of cells where are located the data you want to add
Excel-Exercise-Tutorial-6
Formule de la cellule
C3:C12
 
 
7. The function is :
Excel-Exercise-Tutorial-7
Formule de la cellule
=SUMIF (B3:B12;"Pencil";C3:C12)
 
 
8. Now, if we want to calculate the amount of the Pencils' orders, we just have to change the 3rd parameter of the function et select the data of the column E
Excel-Exercise-Tutorial-8
Formule de la cellule
E3:E12
 
 
9. And so, you have the following result
Excel-Exercise-Tutorial-9
Formule de la cellule
=SUMIF (B3:B12;"Pencil";E3:E12)