Function Problems

How to Extract Matching Text and Names to Another Excel Sheet

Rana GarciaRana Garcia Nov 2, 2026 870 views

Question details

The user needs to find a specific keyword on a master worksheet and copy the corresponding first name, last name, and target value into a separate dedicated worksheet.

How to Extract Matching Text and Names to Another Excel Sheet
Product
Excel
Device & OS
not provided
Scenario
Organizing data by extracting specific rows from a large master sheet into separate, categorized worksheets based on a specific matching criteria.
Observed behavior
The goal is to properly populate destination columns (like First Name, Last Name, and Precinct) on a new sheet dynamically by finding the matching target keyword on the master sheet.
Before you start

Identify the exact column in your master sheet that contains your target keyword, and ensure the data ranges you want to extract (e.g., first and last name columns) are clearly defined.

Solution 1Recommended

Use the FILTER Function to Extract Multiple Matching Rows

The FILTER function is the most efficient method for extracting all rows that contain a specific target word and placing them in a new worksheet.

If your target keyword appears in multiple rows, traditional lookup functions will only return the first match. The FILTER function solves this by returning an array of all matches at once.

1
Open your destination sheet

Navigate to the separate worksheet where you want the extracted data to appear (e.g., the "Wilton" sheet) and select the starting cell.

2
Enter the FILTER formula

Type the formula: =FILTER(Master!A:C, Master!I:I="Wilton", "No match"). In this example, 'Master!A:C' is the range of columns containing the names, and 'Master!I:I' is the column containing the target keyword.

3
Press Enter to execute

Press Enter. All related records matching the keyword "Wilton" will automatically spill into the adjacent columns and rows.

Use the FILTER Function to Extract Multiple Matching Rows
Dynamic Updates: Because this is an array formula, any new entries added to the Master sheet that contain the word "Wilton" will automatically appear on your extracted sheet.
Easily Manage Spreadsheets with WPS Office

Extract Data Quickly with Advanced Formulas in WPS Spreadsheet

WPS Spreadsheet fully supports advanced data extraction formulas like FILTER, INDEX, MATCH, and VLOOKUP. You can easily manage complex master datasets and pull specific data into new sheets with zero hassle.

  1. 1. Open your master dataset: Launch WPS Spreadsheet and open the file containing your master data.
  2. 2. Create a new worksheet: Click the '+' icon at the bottom of the window to create the destination sheet for your extracted names.
  3. 3. Apply the extraction formula: Use the =FILTER() or =INDEX() functions exactly as you would in Excel to pull the matching rows into the new sheet.
  4. 4. Save your work securely: Save your document in .xlsx format to guarantee that your extraction formulas work seamlessly across all platforms.
Fully compatible with Microsoft Excel formulas and .xlsx files.Supports modern dynamic array functions for instant data extraction.Lightweight, fast performance even with large master datasets.
QA img-9

Frequently Asked Questions

How do I extract data if my target keyword appears in multiple rows?

The most effective way to extract multiple rows based on a single keyword is by using the =FILTER() function, which pulls all corresponding records simultaneously. Alternatively, you can use a Pivot Table with the target keyword set as a report filter.

Why is my VLOOKUP formula only returning the first match?

VLOOKUP is designed to scan from top to bottom and automatically stops searching once it finds the first exact match. To retrieve multiple matches, you must use dynamic array formulas like FILTER, or build an array formula using INDEX, SMALL, and ROW.

Can I extract data based on a partial text match instead of an exact word?

Yes. If you are using functions like VLOOKUP or MATCH, you can incorporate wildcard characters such as an asterisk (*). For example, matching "*Wilton*" will find cells that contain the word "Wilton" surrounded by any other text.

Will my extracted worksheet update if I modify the master sheet?

Yes, if you use extraction formulas like FILTER, INDEX, or VLOOKUP, your destination sheet will update automatically whenever the data in the master sheet changes. If you copy and paste the rows manually, the data will remain static.