DEV Community

Andrews
Andrews

Posted on • Originally published at geekexcel.com on

Formulas to Count the Rows that contain at least N Matching Values!!

This page will show the clear information on the Formulas to count the rows that contain at least N matching values in Excel. Let’s see them below!! Get an official version of ** MS Excel** from the following link: https://www.microsoft.com/en-in/microsoft-365/excel

Formulas to count rows that contain at least N matching values
Formulas to count rows that contain at least N matching values

General Formula:

  • Use the below formula to count the number of rows that contain at least N matching values in Excel Office 365.

=SUM(–(MMULT(–(criteria),TRANSPOSE(COLUMN(data)^0))>=N))

Syntax Explanations:

  • SUM – In Excel, the SUM Function helps to add the values in the cells.
  • MMULT – This function will return the matrix product of two arrays. Read more on the MMULT Function.
  • TRANSPOSE – It helps to change the orientation of a given range or array. Read more on the TRANSPOSE Function.
  • COLUMN – The COLUMN Function in Excel returns the column number for reference.
  • Data – It represents the input range from your worksheet.
  • Criteria – It is the specific value that you want to be count.
  • *N * – It is the number of matching values in a row.
  • Comma symbol (,) – It is a separator which helps to separate a list of values.
  • Parenthesis () – The main purpose of this symbol is to group the elements.

Example:

  • In the below example, we will show how to count rows that contain at least N matching values.
  • First, we will give the input values in Column C , Column D , and Column E.
  • Then, apply the given formula in the formula bar section.
  • After entering the formula, Press (CTRL+SHIFT+ ENTER) keys.
  • Finally, it will display the result as shown below.

Example
Example

Wind-Up:

From this tutorial, you can get to know the Formulas to count the number of rows that contain at least N number of matching values in Excel Office 365. If you have any queries, leave it in the below comment section. Thank you so much for Visiting Our Site!! Continue learning on Geek Excel!! *and Excel Formulas *!!

Top comments (0)