Dataset Overview
We’ll use the following dataset. It contains several Book Name along with their respective details.

Method 1 – Use the COUNTIF for Partial Matches
- Choose the cell where you want the count of books. For example, let’s select cell C16.
- In cell C16, enter the following formula:

- Press Enter to get the result.

Method 2 – Employing COUNTIF for Partial Matches
The COUNTIFS function allows counting based on multiple criteria. Let’s explore two examples:
2.1. Apply COUNTIFS for Partial Matches
- Choose the cell where you want the count of books.
- In the selected cell, enter:

- Press Enter to get the Count of Books.

2.2. Utilizing COUNTIFS for Partial Matches with Multiple Criteria

- Choose the cell where you want the Count of Books.
- In the selected cell, enter:

- Press Enter to get the Count of Books.

Method 3 – Using IF and COUNTIF for Genre Comparison
Apart from counting, you can check if a specific genre exists. Here’s how:

- Choose the cell where you want the status (e.g., cell D5).
- In cell D5, enter:

- Press Enter to get the result.

How Does the Formula Work?
- Drag the Fill Handle down to copy the formula.

- Below is the desired result:

Alternative to COUNTIF Function for Partial Match in Excel
Instead of using the COUNTIF function, you can use a combination of several functions to achieve the same type of operation. This alternative formula utilizes the SUMPRODUCT function, the ISNUMBER function, and the SEARCH function. Let’s walk through the steps:
- Choose the cell where you want the count of books. For example, let’s select cell C16.
- In cell C16, enter the following formula:

- Press Enter to get the Count of Books.

How Does the Formula Work?
Practice Section
We have provided a practice sheet for you to practice how to use the COUNTIF function for a partial match in Excel.

Download Practice Workbook
You can download the practice workbook from here:
<< Go Back to Partial Match Excel | Formula List | Learn Excel
Get FREE Advanced Excel Exercises with Solutions!