Function Problems

WPS Spreadsheet: Search an Excel Database by Email and Return a Matching Row

Ayan MasoodAyan Masood Nov 12, 2026 869 views

Question details

The user needs to find an email address in a large database and return the corresponding record to another worksheet.

WPS Spreadsheet: Search an Excel Database by Email and Return a Matching Row
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
An email address is entered on one worksheet, and the matching name, field, or complete database row needs to be retrieved automatically without manually searching the database.
Observed behavior
The desired matching record should populate another worksheet based on the email address used as the lookup value.
Before you start

Confirm that the database has a consistent Email column and, preferably, is formatted as a table with a recognizable name such as Database. Check for leading or trailing spaces in email values if a lookup does not return a match.

Solution 1Recommended

Use XLOOKUP to return a field from the matching email record

Use this method when you need one value, such as a name, department, or phone number, from the row that matches an email address.

XLOOKUP searches the Email column and returns the corresponding value from another column. Replace the table and column names with the names used in your workbook.

1
Enter the lookup email

On the destination worksheet, enter the email address to search in a cell such as A2.

2
Insert the XLOOKUP formula

Select the cell where the result should appear, choose the formula bar or a blank cell, and enter =XLOOKUP(A2,Database[Email],Database[Name],"Not found").

3
Adjust the return column

Replace Database[Name] with the table column you want to return, then press Enter and copy the formula down if you have multiple email addresses.

Handle unmatched emails: The "Not found" argument displays a readable result when the email is not present in the database instead of showing an error.
WPS Spreadsheet lookup tools

Find email records quickly with XLOOKUP or FILTER in WPS Spreadsheet

WPS Spreadsheet lets you search a structured Excel database by email and return either a selected field or the complete matching row. Its familiar formula tools make it easy to migrate existing lookup workbooks and automate results on another worksheet.

  1. 1. Open the workbook: Launch WPS Office, choose Spreadsheet, and open the Excel workbook containing the database.
  2. 2. Format the database as a table: Select the database range, open the Table tools from the ribbon, and assign a clear table name such as Database.
  3. 3. Create the lookup: On the destination worksheet, use XLOOKUP to return one field or FILTER to return the complete row based on the email cell.
  4. 4. Check the result: Verify the returned record and correct spaces or inconsistent email formatting if the formula displays "Not found".
Return a name, department, or other field with XLOOKUP.Retrieve complete matching records with FILTER.Work with familiar Excel-style formulas and table references.Open and save Microsoft Excel .xlsx workbooks with compatible formatting and formulas.
microsoft office alternative - wps office

Frequently Asked Questions

How do I return only the name for a matching email in WPS Spreadsheet?

Enter the email in a cell such as A2, then use =XLOOKUP(A2,Database[Email],Database[Name],"Not found"). Replace the table and column names with those in your workbook.

How can I return the entire row that matches an email address?

Use =FILTER(Database,Database[Email]=A2,"Not found") in the destination worksheet. The matching row will spill across adjacent cells, so keep the output area clear.

Why does the email lookup show "Not found" even when the address exists?

Check for leading or trailing spaces, different punctuation, or inconsistent text formatting. Compare the lookup email with the database value and clean unwanted spaces before running the formula again.

Can XLOOKUP return a value from a worksheet with a different name?

Yes. Use a range from the other worksheet, such as =XLOOKUP(A2,DatabaseSheet!B:B,DatabaseSheet!C:C,"Not found"), or use structured table references if the database is formatted as a table.

What should I use if multiple records have the same email address?

Use FILTER to return every matching row. XLOOKUP returns the first matching result, while FILTER can display all records that meet the email condition.