This browser does not support basic Web standards, preventing the display of our site's intended design. May we suggest that you upgrade your browser?
Countif and Sumif are two functions which are helpful and very easy to use. Countif counts the number of items that meet a certain criteria. Sumif adds all items that meet a certain criteria.
The Countif function counts the number of items that meet a certain criteria. This criteria can be a number range or a word. This is useful when determining the number of entries within a certain range, such as test scores or the number of entries that equal a certain value, like the class rank of "junior" or "senior."
Open the desired worksheet
Select the cell where you want the result of the function to appear
From the Insert menu, select Function...
OR
Windows: On the Formula Bar, click INSERT FUNCTION![]()
The Insert Function dialog box appears.
Macintosh: On the Standard toolbar, click PASTE FUNCTION![]()
The Paste Function dialog box appears.
Windows: From the Or select a category pull-down list, select All or Statistical
Macintosh: From the Function category scroll box, select All or Statistical
Windows: From the Select a function scroll box, select COUNTIF
Macintosh: From the Function name scroll box, select COUNTIF
Click OK
The Function Arguments dialog box appears.
Click RESTORE DIALOG
or![]()
In the Criteria text box, type the appropriate criteria, such as the numerical range, text value, or expression (e.g., >2)
EXAMPLE: To count the number of students with a class rank of "senior," type senior
Click OK
The appropriate number appears in the cell you selected and the formula appears in the Formula Bar.
EXAMPLE: The formula should look something like =COUNTIF(C2:C11,"senior") with C2:C11 being the range, and "senior" the criteria.
The Sumif function adds all items that meet a certain criteria. For example, you could add all the scores of students with a class rank of "senior."
Open the desired worksheet
Select the cell where you want the result of the function to appear
From the Insert menu, select Function...
OR
Windows: On the Formula Bar, click INSERT FUNCTION![]()
The Insert Function dialog box appears.
Macintosh: On the Standard toolbar, click PASTE FUNCTION![]()
The Paste Function dialog box appears.
Windows: From the Or select a category pull-down list, select All or Math & Trig
Macintosh: From the Function category scroll box, select All or Math & Trig
Windows: From the Select a function scroll box, select SUMIF
Macintosh: From the Function name scroll box, select SUMIF
Click OK
The Function Arguments dialog box appears.

Click RESTORE DIALOG
or![]()
Click RESTORE DIALOG
or![]()
Click RESTORE DIALOG
or![]()
Click OK
The sum appears in the selected cell and the formula appears in the Formula Bar.
EXAMPLE: The formula should look something like =SUMIF(C2:C11,"senior") with C2:C11 being the range and "senior" being the criteria.