Function Problems

WPS Spreadsheet: Return Multiple Exact Matches and Row Numbers

Algirdas JasaitisAlgirdas Jasaitis Nov 12, 2026 869 views

Question details

The user needs a formula that returns every exact match from column A and combines the matching row numbers into a single result without VBA or macros.

Product
WPS Spreadsheet
Device & OS
not provided
Scenario
A worksheet contains searchable values in column A. The sheet name is stored in F5, and the value to find is stored in G5.
Observed behavior
The goal is to display all matching references, such as A12, A18, and A25, in one result together with the searched value.
Before you start

Confirm that F5 contains the exact worksheet name and G5 contains the value to search for. Make sure your WPS Spreadsheet version supports the FILTER and TEXTJOIN functions.

Solution 1Recommended

Use FILTER and TEXTJOIN to combine every matching row

Use this dynamic-array formula when you need all exact matches from column A returned in one cell without macros.

The formula builds a reference from column A and each matching row number, filters out nonmatching rows, and joins the remaining references with commas. Replace the full-column references with a defined range such as A1:A10000 if the workbook becomes slow.

1
Enter the sheet name

In cell F5, enter the exact name of the worksheet that contains the search data.

2
Enter the lookup value

In cell G5, enter the value that should be matched in column A.

3
Insert the formula

Select the result cell and enter =F5&": "&TEXTJOIN(", ",TRUE,FILTER("A"&ROW(INDIRECT("'"&F5&"'!A:A")),INDIRECT("'"&F5&"'!A:A")=G5,""))&" - "&G5, then press Enter.

4
Review the combined result

Check the result cell for a value such as Sheet1: A12, A18 - ProductX. If no match exists, FILTER returns an empty result.

No VBA required: FILTER generates all matching row references and TEXTJOIN combines them into one cell, so the result updates when the source values or lookup value change.
WPS Spreadsheet solution

Find and combine exact-match rows in WPS Spreadsheet

WPS Spreadsheet can complete this lookup with modern worksheet formulas. Enter the source sheet and search value, then use FILTER with TEXTJOIN to return every matching row reference in one cell without VBA.

  1. 1. Open the workbook: Launch WPS Office, choose Spreadsheet, and open the workbook containing the lookup data.
  2. 2. Set the lookup inputs: Enter the source worksheet name in F5 and the value to find in G5.
  3. 3. Add the dynamic formula: Select a result cell and enter the FILTER and TEXTJOIN formula to collect matching column A row references.
  4. 4. Save the result: Review the combined matches and save the workbook in XLSX format if it must be shared with Microsoft Excel users.
Returns multiple exact matches in a single readable resultWorks without VBA, macros, or custom scriptsSupports familiar Excel-style formulas and spreadsheet workflowsCompatible with Microsoft Excel XLSX and XLS formats
microsoft office alternative - wps office

Frequently Asked Questions

Where should I place the formula in WPS Spreadsheet?

Place it in any result cell outside the source data, such as H5. Keep the sheet name in F5 and the lookup value in G5 so the formula can use those inputs.

How does the formula return row numbers for exact matches?

The expression "A"&ROW(...) converts each matching row into a reference such as A12. FILTER keeps only rows where column A equals G5, and TEXTJOIN combines those references.

Can I search a limited range instead of the entire column?

Yes. Replace both instances of A:A inside INDIRECT with a range such as A2:A10000. Use the same range in both places so the values and row numbers stay aligned.

What happens if no exact match is found?

FILTER uses an empty string as its if-empty argument, so TEXTJOIN returns no matching row reference. Verify the spelling, spacing, worksheet name, and value in G5 if the result is blank.

Can this formula be used without VBA or macros?

Yes. The solution uses worksheet functions only: INDIRECT, ROW, FILTER, and TEXTJOIN. It does not require VBA, macros, or a separate script.