1. Home
  2. Computing & Technology
  3. Spreadsheets

Excel 2007 COUNTIF

By , About.com Guide

Using Excel 2007's COUNTIF Function

Using Excel 2007's COUNTIF Function

© Ted French

The COUNTIF function, one of Excel's COUNT functions, is used to count up the number of cells in a selected range that meet certain criteria.

The syntax for the COUNTIF function is:

=COUNTIF( Range, Criteria)

Range - the group of cells the function is to search.

Criteria - determines whether the cell is to be counted or not. This can be a number, expression, cell reference, or text string.

Example Using Excel's COUNTIF Function:

Note: For help with this example, see the image above.

  1. Enter the following data into cells E1 to E6: 114, 165, 178, 143, 130, 165.

  2. Click on cell E7 - the location where the results will be displayed.

  3. Click on the Formulas tab.

  4. Choose More Functions > Statistical from the ribbon to open the function drop down list.

  5. Click on COUNTIF in the list to bring up the function's dialog box.

  6. In the dialog box, click on the button at the end of the Range line to return to your spreadsheet.

  7. Drag select cells E1 to E6 on the spreadsheet to highlight them.

  8. Click on the button at the end of the Range line to return to the dialog box.

  9. On the Criteria line in the dialog box, type "165".

  10. Click OK.

  11. The answer 2 should appear in cell E7 since two cells in the range - A2 and A6 - contain the number 165 and, therefore, match the criteria argument.

  12. When you click on cell E7 the complete function = COUNTIF (E1 : E6 , 165 ) appears in the formula bar above the worksheet.


Related Articles
More Spreadsheets Quick Tips
Explore Spreadsheets
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Spreadsheets
  4. Excel Functions
  5. Excel 2003 Functions
  6. COUNTIF - Excel 2007 COUNTIF - Excel COUNTIF Example

©2009 About.com, a part of The New York Times Company.

All rights reserved.