COUNT Functionslesson 26 of 95
COUNTIF Function
Loading the data...
COUNTIF Function - Excel Practice Online
This interactive exercise teaches you COUNTIF Function in Excel through 10 hands-on steps. Instead of watching a video, you type the real formula into a live spreadsheet grid and get instant feedback on every answer. It is part of the COUNT Functions track and works right in your browser - no Excel install and no download. Start free.
Practising COUNTIF Function this way builds the muscle memory that transfers straight to using Excel at work, in interviews, or for certification prep. Work through the steps above, then keep going with the next lesson to build a complete Excel practice course.
What you'll practice in this COUNTIF Function lesson
- The COUNTIF function counts the number of text, date, or numerical cells that meet a certain condition. Count the branches in B2:B8 that are in "MN" to get the number of branches in Minnesota (3)!
- The COUNTIF function also works with the logical operators inside the quotes. Count the branch sales in C2:C8 that are over 500 to get the number of branches with sales over 500 (3)!
- The COUNTIF function supports wildcard matching of text. What would =COUNTIF(A2:A8, "M*") return? Hint: It counts any string that starts with "M". - "M*" keeps every city in A2:A8 that starts with M: Minneapolis and Madison. Des Moines has an M, but not at the start. The answer is 2. The state codes in column B are not part of the range.
- Wildcard matching with "?" specifies the exact number of characters. What would =COUNTIF(A2:A8, "M??????") return? Hint: It counts any string that starts with "M" and is 7 characters long. - "M??????" matches text that starts with M and has exactly six more characters, 7 in all. Madison is the only city that fits, because Minneapolis is too long. So the formula returns 1.
- What would =COUNTIF(C2:C8, ">=500") return? - ">=500" counts every sales figure in C2:C8 that is 500 or more: 1000, 500, 640 and 650. St. Paul's 500 counts too, because >= includes the number itself. The answer is 4.
- Write a COUNTIF function that returns the number of branches where sales was less than 400.
- Write a COUNTIF function that returns the number of branches where sales was not equal to 500. In Excel, "not equal to" is written <>.
- What would =COUNTIF(A:B, "M*") return?
- What would =COUNTIF(A:B, "M?") return? - "M?" matches text that is exactly 2 characters long and starts with M. In columns A and B that is MN three times and MI once, so the formula returns 4.
- COUNTIF is not case sensitive. What would =COUNTIF(A:A, "mINneApOliS") return?
COUNTIF Function practice - FAQ
How do I practice COUNTIF Function in Excel?
Open this LogicExcel exercise and work through 10 interactive steps. You type the real formula into a live spreadsheet grid and get instant feedback on whether it is correct, plus an explanation. You need no Excel install.
Is the COUNTIF Function exercise free?
Your first two lessons are free with a free account. After that the pass opens all 95 lessons, the Academy and the accounting course. Lessons you finish stay open.
What will I learn in this COUNTIF Function lesson?
This lesson covers COUNTIF Function as part of the COUNT Functions track. You practice the syntax step by step until it becomes muscle memory you can use at work.