How to Extract Matching Text and Names to Another Excel Sheet
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.

- 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.
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.
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.
Navigate to the separate worksheet where you want the extracted data to appear (e.g., the "Wilton" sheet) and select the starting cell.
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.
Press Enter. All related records matching the keyword "Wilton" will automatically spill into the adjacent columns and rows.

Use INDEX and MATCH for Precise Lookup Extraction
If you are using an older version of Excel that does not support the FILTER function, the INDEX and MATCH combination allows you to extract specific column data flexibly.
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. Open your master dataset: Launch WPS Spreadsheet and open the file containing your master data.
- 2. Create a new worksheet: Click the '+' icon at the bottom of the window to create the destination sheet for your extracted names.
- 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. Save your work securely: Save your document in .xlsx format to guarantee that your extraction formulas work seamlessly across all platforms.

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.




