Function Problems

How to Count Matching Test Combinations with COUNTIFS in WPS Spreadsheets

Muhammad TalhaMuhammad Talha Nov 13, 2026 869 views

Question details

The user needs to count rows in a large imported dataset where Name, Date, and Time match and specific test combinations such as Test A + Test B or Test A + Test B + Test C occur.

How to Count Matching Test Combinations with COUNTIFS in WPS Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Analyzing a large imported dataset to identify how often specific test combinations occur when Name, Date, and Time match.
Observed behavior
The user needs a formula-based method to count matching test combinations without manually filtering large data.
Before you start

Before you create the formula, check that the Name, Date, Time, and Test values are in separate columns and that the data range is consistent. Insert an empty helper column next to the source data so you can combine the values cleanly.

Solution 1Recommended

Count Matching Test Combinations with a Helper Column and COUNTIFS

Use this method for a formula-based count of combinations such as Test A + Test B in a manageable dataset.

The helper column joins Name, Date, Time, and Test values into one text key. COUNTIFS can then use wildcard criteria to detect whether the required test values appear in each row. Using a delimiter helps avoid accidental matches between concatenated values.

1
Add a helper column

In an empty column next to your data, enter a header such as Key. In the first data row, type =A2&"|"&B2&"|"&C2 and drag the fill handle down through all imported rows.

2
Enter the COUNTIFS formula

In the cell for the result, enter =COUNTIFS($D$2:$D$10,"*"&A13&"*",$D$2:$D$10,"*"&B13&"*") and replace $D$2:$D$10 with your helper column range.

3
Add criteria for additional tests

To count rows with Tests A, B, and C, add a third wildcard condition such as $D$2:$D$10,"*"&C13&"*". Copy the formulas down to compare more combinations.

Count Matching Test Combinations with a Helper Column and COUNTIFS
Use a delimiter to avoid false matches: Include a delimiter such as | in the helper key, for example =A2&"|"&B2&"|"&C2, so values like AB and A|B are not counted incorrectly.
WPS Spreadsheets formula solution

Count Test Combinations in WPS Spreadsheets with COUNTIFS

Use a helper column and COUNTIFS in WPS Spreadsheets to count imported rows that match Name, Date, Time, and specific test combinations. The familiar formula approach works with .xlsx and .xls files.

  1. 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, open the imported workbook, and click the worksheet that contains the Name, Date, Time, and Test values.
  2. 2. Create the helper column: In an empty column, type =A2&"|"&B2&"|"&C2 in the first data row and drag the fill handle down the entire dataset.
  3. 3. Enter the COUNTIFS formula: In a blank cell, enter =COUNTIFS($D$2:$D$10,"*"&A13&"*",$D$2:$D$10,"*"&B13&"*") and replace the range and cell references with your helper column and test values.
  4. 4. Add criteria for more tests: For Test A, Test B, and Test C, add a third wildcard criteria like $D$2:$D$10,"*"&C13&"*" to the COUNTIFS formula.
  5. 5. Copy and review the results: Copy the formula down for additional test combinations and check the counts against the imported data.
Count test combinations such as Test A + Test B or Test A + Test B + Test C directly in WPS Spreadsheets.Use familiar COUNTIFS syntax with wildcard criteria and a helper column.Open and save Microsoft Excel .xlsx and .xls files without losing formulas.Free, lightweight spreadsheet alternative with a familiar ribbon interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why should I create a helper column before using COUNTIFS?

A helper column joins Name, Date, Time, and Test values into one text string, so COUNTIFS can search that string with wildcards. Without it, COUNTIFS would need separate criteria ranges for each part, which becomes difficult when counting combinations like Test A and Test B.

How do I count rows containing Test A, Test B, and Test C in WPS Spreadsheets?

Create a helper column, then use COUNTIFS with three wildcard criteria: =COUNTIFS($D$2:$D$10,"*"&A13&"*",$D$2:$D$10,"*"&B13&"*",$D$2:$D$10,"*"&C13&"*"). Replace the range and cell references with your data.

Why should I use a delimiter in the helper column?

A delimiter such as | separates combined values so COUNTIFS does not match accidental text overlaps. For example, =A2&"|"&B2&"|"&C2 prevents AB and A|B from being treated the same.

Can COUNTIFS handle thousands of imported rows?

COUNTIFS can calculate the count, but very large datasets are easier to analyze with a PivotTable. Select the data, go to the Insert tab, choose PivotTable, and drag Name, Date, Time, and Test fields into the layout.

What if I do not want to manually copy formulas down for many test combinations?

Use a PivotTable or, if available in your WPS Spreadsheets build, Power Query. These tools summarize large imported datasets without needing helper formulas in every row.