logo
search
Function Problems

How to Combine Matching Rows from Another Table in Excel 2016

Kushani NimanthikaKushani Nimanthika Sep 28, 2026 869 views

Question details

The user needs to find all rows in a table that contain a specific value from another table and concatenate those matching results into a single new column.

How to Combine Matching Rows from Another Table in Excel 2016
Product
Microsoft Excel 2016
Device & OS
not provided
Scenario
Consolidating and concatenating text data across two different tables based on matching criteria.
Observed behavior
The user is unable to use the modern FILTER function to extract and combine matches because Excel 2016 does not support it.
Before you start

Ensure both of your datasets are formatted as Excel Tables (select your data and press Ctrl+T). This makes referencing columns easier and keeps your formulas or queries dynamic as data grows.

Solution 1Recommended

Use Power Query to Merge and Group Data

Power Query is built into Excel 2016 and provides a robust, formula-free way to merge tables and concatenate matching rows without needing the FILTER function.

Power Query can easily handle relational data tasks. By merging your two tables and grouping the results, you can concatenate matches into a single text string using the Text.Combine function.

1
Load tables into Power Query

Select a cell in your first table, go to the Data tab, and click 'From Table/Range'. Once the Power Query Editor opens, close it while choosing 'Keep Connection Only'. Repeat this for the second table.

2
Merge the Queries

In Excel, go to Data > Get Data > Combine Queries > Merge. Select your first table from the top dropdown and your second table from the bottom dropdown. Highlight the matching columns in both previews and click OK.

3
Group and Extract Matching Data

In the Power Query Editor, right-click the matching column and select 'Group By'. Choose the 'All Rows' operation. Then, add a Custom Column using the formula: Text.Combine([GroupedColumnName][TargetColumnToExtract], ", ").

4
Load the Results

Remove any unnecessary columns, click 'Close & Load' on the Home tab, and place the new consolidated table into your desired worksheet.

Use Power Query to Merge and Group Data
No Code Required: Power Query is the most scalable solution for this task in Excel 2016 and refreshes automatically when you add new data.
Modern Functions in WPS Office

Use WPS Spreadsheet to Seamlessly Filter and Combine Data

WPS Office Spreadsheet supports modern dynamic array functions like FILTER and TEXTJOIN, allowing you to easily concatenate matching rows without needing complex Power Query setups or VBA coding.

  1. 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open your existing Excel file containing the two tables.
  2. 2. Select the result cell: Click on the cell in the first table where you want the combined matching data to be displayed.
  3. 3. Apply the modern formula: Type =TEXTJOIN(", ",TRUE,FILTER(Table2[LocNum],ISNUMBER(SEARCH([@Name],Table2[Path])),"")) and press Enter.
  4. 4. Drag to fill: Click the fill handle at the bottom-right corner of the cell and drag it down to apply the combination logic to the rest of the rows.
Built-in support for advanced functions like FILTER and TEXTJOINFully compatible with Microsoft Excel (.xlsx, .xlsm) formatsLightweight, fast, and completely free to useFamiliar user interface requiring zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the FILTER function work in Excel 2016?

The FILTER function is a modern dynamic array function introduced in newer versions of Excel, such as Microsoft 365 and Office 2021. It is not backward-compatible with the standalone (perpetual) release of Excel 2016.

Can I use TEXTJOIN in Excel 2016?

TEXTJOIN is only available in Excel 2016 if you have an active Microsoft 365 subscription. Users with standalone, non-subscription versions of Excel 2016 do not have access to this function and must rely on VBA or Power Query.

Do I need to enable macros to use the VBA solution?

Yes. If you choose to write a custom VBA function to combine your rows, you must ensure macros are enabled in the Trust Center settings and save your file as a Macro-Enabled Workbook (.xlsm).

Is Power Query available in all versions of Excel 2016?

Yes, Power Query is built natively into Excel 2016 under the 'Data' tab (labeled as 'Get & Transform'). It is the most reliable native method for merging and concatenating rows in this version.