Spreadsheet 123 Excel's Functions - CountIF Function

Modifying Excel's CountIF Function

The CountIf function is a conditional formula, like the If function. CountIf is used when you only want to count cells in a row or column that will satisfy a particular condition.


For example, a spreadsheet that shows how many members of staff are absent on each day of the month. You may need to know on how many days there were no absences. The CountIf function is the perfect solution for this problem. This is the official microsoft definition of the CountIf function:


=COUNTIF(range,criteria)


So, from the example, what we are looking for is all the cells in a range where "0" occurs. If the values are in the range A1 to A31, our function would look like this:


=COUNTIF(A1:A31, "0")


This basically says count all the cells in this range only if data in the cells equals 0. The criteria doesn't have to be numerical, you can also use words or phrases.


Back to the Function Index

More Formulas and Functions in Excel 97/2000/2002XP/2003/2007

What Is An IS Function?
Ever wondered how to use the IS functions in Excel? This article explains how to use IS and IF functions.

IsError Function
The IsError function is one of the most useful features of Excel. Find out how you can use this function to get rid of Excel's ugly error messages.

Excel Printing
Find out how to prepare your excel worksheet for printing and how to print large spreadsheets in Excel.

Merging Cells in Excel
See how to make your worksheets more "readable" by merging cells.

Excel 97/2000/2002XP/2003/2007 Full Tutorials
If you are interested in more advanced formulas and functionalities of Excel 97/2000/2002XP/2003/2007 Click on the link above

Suggested Reading

Spreadsheet News



Forum


Meet advanced users of MS Excel and Spreadsheet and do not be shy to ask your question.


Book Shop


Visit our busy book shop, were you can find latest books for beginners as well as advanced users of excel and similar programs.



Software Library




Excel & Spreadsheet
Online Tutorials




Spreadsheet123
Home | About Us | Our Services | Software | Spreadsheets Library | Excel Tutorials | Useful Links | Site Map | Contact Us
Bookmark this PageBookmark this Page
Home
About Us

Book Shop

Excel
Excel Tutorials
Financial Modelling
Excel Templates

Excel Tutorials

Excel Basic Tutorial
Excel Tech on Net
MS Excel Tutorials and Projects
MS Excel Spreadsheet Tutorial
How to Decide What Chart Type to Use
How To Merge Cells in Excel
Excel - Printing Effectively from Excel
Using Excel Functions and Creating Formulas

Spreadsheets Library

Corporate finance spreadsheets
Valuation Inputs Spreadsheets
Big-picture valuation spreadsheets
Focused valuation spreadsheets
Financial Service firms
Troubled firms
Private companies
Young and high-growth firms
Multiples
Valuation in Acquisitions
Valuation of other assets
Value Enhancement Spreadsheets
Basic option pricing models
Real option models in corporate finance
Real option models in valuation
Hotel & Restaurant Management Spreadsheets
Real Estate & Mortgage Excel Spreadsheets
Excel Personal Budget Spreadsheets
More Spreadsheets

Software Library

Accounting Software
Small Business Software
Tax Calculating Software
Auditing Software
Excel Add-Ins
Property Management Software
Payroll Software
Spreadsheet Software

Contact Us
Useful Links
Our Services
Site Map