logo
search
Function Problems

How to Find an Email Match in Excel and Return the Adjacent Value

Khadija KhanKhadija Khan Oct 14, 2026 870 views

Question details

The user needs an Excel formula to check if an email address exists in a specific lookup column and output a corresponding value in an adjacent cell on the same row if a match is found.

How to Find an Email Match in Excel and Return the Adjacent Value
Product
Excel
Device & OS
not provided
Scenario
Comparing two lists of data, specifically verifying if an email address from one list is present in another, and outputting data based on that match.
Observed behavior
Requires a reliable formula to scan a referenced range for an email address, returning a designated value for true matches and leaving the cell blank if there is no match.
Before you start

Ensure your lookup list is locked using absolute references (like $H$2:$H$100) so the range does not shift when you drag the formula down. Also, check that your email data does not contain hidden leading or trailing spaces.

Solution 1Recommended

Use IF and COUNTIF Formulas to Find the Match

This method counts the occurrences of an email in your reference list and uses an IF statement to return the designated value when the count is greater than zero.

The COUNTIF function scans your designated lookup list for the target email. By wrapping this function inside an IF statement, you instruct Excel to output the email (or any other value you specify) if a match is found, and return an empty cell otherwise.

1
Select the target cell

Click on the cell in the adjacent column where you want the result to appear (for example, cell G2).

2
Enter the formula

Type the formula =IF(COUNTIF($H$2:$H$100,F2)>0,F2,"") into the formula bar. In this example, F2 is the cell containing the email you are looking for, and $H$2:$H$100 is your main lookup list.

3
Apply the formula

Press Enter to execute the formula and view the result for the first row.

4
Fill the formula down

Click the small square at the bottom-right corner of cell G2 and drag it down your column to apply the formula to the rest of the email addresses.

Use IF and COUNTIF Formulas to Find the Match
Customizing the Return Value: If you want the formula to return a specific text like "Match Found" instead of repeating the email address, change the F2 right before the empty quotes to "Match Found".
Work Smarter with WPS Spreadsheet

Manage Data and Formulas Effortlessly with WPS Office

WPS Spreadsheet provides comprehensive support for all standard lookup and logical functions, making it incredibly easy to cross-reference data and find email matches without performance lag.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your email lists.
  2. 2. Input the lookup formula: Select the target cell, type the =IF(COUNTIF(...)) formula, and press Enter.
  3. 3. Batch apply the formula: Double-click the fill handle in the bottom-right corner of the cell to instantly apply the formula to the entire column.
Fully compatible with Microsoft Excel file formats (.xls, .xlsx) and formulas.Intuitive formula builder that helps you write IF and COUNTIF functions without errors.Lightweight application that processes large datasets quickly and smoothly.Free to use, offering a seamless and familiar user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my formula return a blank cell even when I can see the email in both lists?

This is typically caused by hidden leading or trailing spaces in one of the cells. You can use the TRIM function or the 'Find and Replace' tool to remove extra spaces from both columns so they match exactly.

Can I use XLOOKUP for this task?

Yes, if your version of Excel or WPS Office supports XLOOKUP, it provides a cleaner syntax. You can use =XLOOKUP(F2, H2:H100, H2:H100, "") to find the exact match and return it, or output a blank cell if not found.

How do I ignore case sensitivity when looking up emails?

The COUNTIF and VLOOKUP functions are not case-sensitive by default. Searching for 'test@email.com' will successfully match 'Test@Email.com' without requiring any modifications to the formula.