Find the Most Common Text with Multiple Criteria in Excel 2016
Question details
Find the most frequently repeated text in Excel 2016 using multiple conditions.

- Product
- Microsoft Excel 2016
- Device & OS
- not provided
- Scenario
- A worksheet contains text values that must be counted only when other columns meet specified criteria, such as a date and a category.
- Observed behavior
- The desired result is the text value that occurs most often among rows meeting all specified conditions.
Identify the date, criteria, and text columns, and make sure the date column contains actual Excel dates. Clarify whether the date condition means after January 1, 2016, or after December 31, 2016; these produce different results.
Use an array formula to find the most common matching text
Use this formula in Excel 2016 when you need the most frequent text value among rows that meet multiple conditions.
In this example, column A contains dates, column B contains regions, and column C contains the text to count. The formula checks for dates after January 1, 2016, and the region North; replace these ranges and criteria with your own.
MATCH assigns a position to each text value, MODE finds the most frequently repeated position among qualifying rows, and INDEX returns the corresponding text.
Click an empty cell such as G2, outside the data ranges used by the formula.
In G2, enter =INDEX(C2:C100,MODE(IF((A2:A100>DATE(2016,1,1))*(B2:B100="North")*(C2:C100<>""),MATCH(C2:C100,C2:C100,0)))). Adjust all ranges to cover the same rows, and replace North with your criterion.
Press Ctrl+Shift+Enter rather than Enter. Excel 2016 displays braces around the formula in the formula bar; do not type the braces yourself.
Review the value in G2 against the qualifying rows. For dates after December 31, 2016, replace DATE(2016,1,1) with DATE(2016,12,31), then confirm the edited formula with Ctrl+Shift+Enter again.

Find the most common matching text in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use an INDEX, MODE, and MATCH array formula to find the most frequent text that meets your conditions.
- 1. Open your workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
- 2. Check the columns: Identify the date, criteria, and text columns. For example, use A2:A100 for dates, B2:B100 for regions, and C2:C100 for text.
- 3. Enter the formula: Select an empty cell and enter =INDEX(C2:C100,MODE(IF((A2:A100>DATE(2016,1,1))*(B2:B100="North")*(C2:C100<>""),MATCH(C2:C100,C2:C100,0)))). Change the ranges and criteria to match your worksheet.
- 4. Confirm and review: Confirm the formula, using Ctrl+Shift+Enter if your WPS version requires array entry, and check the result against the qualifying rows.

Frequently Asked Questions
Why does the formula return an error when there are matching rows?
MODE requires a repeated value. If every qualifying text value occurs only once, or no rows meet all criteria, it returns an error. Check the criteria and look for repeated text in the matching rows.
How do I include January 1, 2016, in the date condition?
Replace >DATE(2016,1,1) with >=DATE(2016,1,1) in the formula. In Excel 2016, confirm the edited formula with Ctrl+Shift+Enter.
How can I add another condition?
Add another multiplied test inside IF, such as *(D2:D100="Yes"), alongside the existing date and region tests. Keep the ranges aligned and confirm the formula with Ctrl+Shift+Enter in Excel 2016.
What happens if two text values are tied for most frequent?
The formula returns the tied value whose first occurrence is earliest in the full text range, even if that first occurrence does not meet the other criteria.




