How to Use Excel's CountIf Function

By eHow Computers Editor

Rate: (4 Ratings)

Excel's CountIf function counts the number of cells in a specified range that meet the specified criteria. The syntax is CountIf (range,criteria), where range is the cell range for which you wish to count cells and criteria is the criteria the cell value must meet in order to be counted. The following steps will show how to use Excel's CountIf function.

Instructions

Difficulty: Moderate
Step1
Study the arguments for Countif. Range is a cell range of the form cell_1:cell_2 and criteria is a cell reference, expression, number or text that defines the cells to be counted. Acceptable values include 16, "16", "<16", A2 or "apples."
Step2
Enter special characters in the criteria for wild card matching. An asterisk (*) matches a series of characters and a question mark (?) matches one character. Place a tilde (~) in front of an asterisk or question mark if you wish to specify an actual asterisk or question mark. Excel has additional functions that may be used in a condition.
Step3
Know when to use alternate functions. Use the Count A and CountBlank functions to count empty or non-empty cells. Use the Sumif function to calculate a sum based on a number within a range or string. Use the If function to return a value based on a formula.
Step4
Look at some common uses of CountIf. If A2="apples," A3="oranges," A4="peaches" and A5="apples" then CountIf(A2:A5, "apples") = 2.
Step5
Examine the use of wild cards in CountIf. Using the same values as in Step 4, we have CountIf(A2:A5,"*es") = 4 and CountIf(A2:A5,"?????es") = 2.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article: How to Use Excel's CountIf Function

eHow Computers Editor

eHow Computers Editor

Category: Computers

Articles: See my other articles

Related Ads