| If Function | Nested If Function |
| IsError Function | More Functions |
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 absenses. 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" occures. 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
Home | About Us | Our Services | Software | Spreadsheets Library | Excel Tutorials | Useful Links | Site Map | Contact Us
Unless otherwise stated, all images and text
Spreadsheet123
Visit our busy book shop, were you can find latest books for beginners as well as advanced excel users.
Spreadsheet 123 Spreadsheet Software Development
See Spreadsheets for:
a.Hotel
Management b.Personal
Budget
c.Corporate
Finance d.Rating
Calculation e.Real
Estate and Mortgage
f.Web Calc