# How to Use COUNTIF Function in Excel

Are you tired of manually counting cells in your Excel spreadsheet? Do you want to be able to easily count cells that meet specific criteria? Well, my friend, you've come to the right place because I'm going to teach you how to use the COUNTIF function in Excel. First of all, let's define what the COUNTIF function does. It counts the number of cells in a range that meet a given criteria. For example, if you want to count the number of cells in a range that contain the word "apple", you can use the COUNTIF function to do that. Here's how you use the COUNTIF function: 1. Select the cell where you want the result to appear. 2. Type "=COUNTIF(" (without the quotes). 3. Select the range of cells you want to count. 4. Type a comma. 5. Type the criteria for counting. 6. Type ")" (without the quotes) and press Enter. Let's go through an example together. I have a list of fruits and their prices in an Excel spreadsheet. I want to count the number of fruits that cost more than \$1.50. Here's how I do it: 1. I select the cell where I want the result to appear. 2. I type "=COUNTIF(". 3. I select the range of prices I want to count ("B2:B11" in this case). 4. I type ">1.50". 5. I type ")" and press Enter. And voila! The result is 4, because there are four fruits that cost more than \$1.50. But wait, there's more! The COUNTIF function is actually quite versatile. Here are some other ways you can use it: - Count cells that contain a certain text: "=COUNTIF(A1:A10, "apple")" - Count cells that are blank: "=COUNTIF(A1:A10, "")" - Count cells that are not blank: "=COUNTIF(A1:A10, "<>")" - Count cells that start with a certain text: "=COUNTIF(A1:A10, "a*")" - Count cells that end with a certain text: "=COUNTIF(A1:A10, "*e")" - Count cells that contain a certain text and meet another criteria: "=COUNTIF(A1:A10, "apple")+(B1:B10>1.50)" You can even combine multiple COUNTIF functions to count cells that meet different criteria. Here's an example: Let's say I have a list of fruits and their prices, and I want to count the number of fruits that cost more than \$1.50 and less than \$2.50. Here's how I do it: 1. I select the cell where I want the result to appear. 2. I type "=COUNTIF(". 3. I select the range of prices I want to count ("B2:B11" in this case). 4. I type ">1.50". 5. I type ", B2:B11". 6. I type "