# Find the count with multiple criteria with ISNA logic in Excel In this article, we will learn to Find the count with multiple criteria with ISNA logic in Excel.

Scenario:

In simple words, while working with long unmannered data. We need to extract the count having multiple criteria with not logic or say values to exclude using the formula in Excel.

How to solve the problem?

For this article we will be needing to use the MATCH function & SUMPRODUCT function. Now we will make a formula out of the mentioned function. Here we will give a list of mixed values. We need to find the count of values satisfying conditions and using ISNA function to exclude values.

Use the formula:

 = SUMPRODUCT ( ( range = criteria ) * ( ISNA ( MATCH ( rng , cri_rng , 0 ) ) )

range: first range to match first criteria

criteria : criteria to match with first range

rng : second range where criteria to exclude

cri_rng : values to exclude from second range

Example:

All of these might be confusing to understand. So, let's test this formula via running it on the example shown below.

Here we have a table and we need to count the values matching certain not logic conditions. Conditions are as following.

1. Must be a female employee so Gender array matches F.
2. Must not include employees from group A and B. Now we will use the formula below to get the count of values in the table satisfying the mentioned criteria.

Formula:

 = SUMPRODUCT ( ( Gender = H5 ) * ( ISNA ( MATCH ( Groups , I5:I6 , 0 ) ) )

Explanation:

• MATCH (Groups,I5:I6,0) matches all the group values with the given criteria values and returns an array of numbers and #NA values.
• MATCH function returns index for matched values and #NA! Error for the unmatched values.
• ISNA returns TRUE value for the corresponding matched #NA! Values and FALSE for the returned index values.
• Gender = H5, this returns all the matched values as TRUE and unmatched as FALSE.
• SUMPRODUCT function returns the count of matched TRUE values corresponding to the both arrays. Here the array to the function is given as named ranges as mentioned in the yellow colored cells.

Named ranges used in formula:

Gender (E4:E17)

ID (D4:D17)

Groups (F4:F17)

Single argument value provided as cell reference. Press Enter to get the result. As you can see in the above snapshot the count comes out to be 3. There are 3 employees which are female and don't belong either group A or group B.

Now we can check for the result via filtering contents see the below gif. Just filter the table array and count the number of matched values or can use the above-mentioned formula to get the count. Here are all the observational notes regarding using the formula.

Notes:

1. The formula only works with numbers and text values both.
2. The array which are Gender and groups must be of same length else the SUMPRODUCT function returns error.
3. Operators like equals to ( = ), less than equal to ( <= ), greater than ( > ) or not equals to ( <> ) can be performed within function applied with numbers only.

Hope this article about how to Find the count with multiple criteria with ISNA logic in Excel is explanatory. Find more articles on COUNTIF functions here. If you liked our blogs, share it with your fristarts on Facebook. And also you can follow us on Twitter and Facebook. We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com

Related Articles

Find the last row of data with numbers in Excel : In a range of text values find the last of data in excel.

How to use the SUMPRODUCT function in Excel: Returns the SUM after multiplication of values in multiple arrays in excel.

COUNTIFS with Dynamic Criteria Range : Count cells depstartent on other cell values in Excel.

COUNTIFS Two Criteria Match : Count cells matching two different criteria on list in excel.

COUNTIFS With OR For Multiple Criteria : Count cells having multiple criteria match using the OR function.

The COUNTIFS Function in Excel : Count cells dependent on other cell values.

How to Use Countif in VBA in Microsoft Excel : Count cells using Visual Basic for Applications code.

How to use wildcards in excel : Count cells matching phrases using the wildcards in excel

Popular Articles

50 Excel Shortcut to Increase Your Productivity : Get faster at your task. These 50 shortcuts will make you work even faster on Excel.

How to use the VLOOKUP Function in Excel : This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.

How to use the COUNTIF function in Excel : Count values with conditions using this amazing function. You don't need to filter your data to count specific values. Countif function is essential to prepare your dashboard.

How to Use SUMIF Function in Excel : This is another dashboard essential function. This helps you sum up values on specific conditions.

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.