How to Search Multiple Excel Worksheets for Duplicate Email Addresses
Question details
The user needs a formula to identify duplicate email addresses scattered across multiple Excel worksheets with varying layouts, and wants to account for new sheets added in the future.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Managing large contact lists or databases spanning multiple sheets with inconsistent column structures.
- Observed behavior
- Standard COUNTIF functions cannot directly process 3D workbook references across unlimited sheets, requiring explicit sheet references or data consolidation.
Gather the exact names of all the worksheets you need to search and ensure you have a backup of your workbook before applying complex array formulas or consolidating data.
Use a Combined COUNTIF Formula with Explicit References
Since COUNTIF does not support 3D references out of the box, use a formula that explicitly evaluates each required sheet.
A standard 3D reference like 'Sheet1:Sheet999!$A:$A' cannot be used directly inside a COUNTIF function. Instead, you must list the individual sheet ranges in an array or add multiple COUNTIF statements together.
Click on a blank cell (for example, next to the email address in cell O3) where you want the duplicate check result to appear.
Type a formula combining the sheets. For example, using array brackets for specific ranges: =IF(COUNTIF({'Sheet1'!$A:$Z;'Sheet2'!$A:$Z}, O3)>1, "Duplicate", "Unique"). Alternatively, use addition: =IF(COUNTIF('Sheet1'!$A:$Z, O3) + COUNTIF('Sheet2'!$A:$Z, O3) > 1, "Duplicate", "Unique").
Press Enter to evaluate the formula. Drag the fill handle down to apply this check to the rest of the email addresses in your column.
When you add a new worksheet to your workbook in the future, you must manually edit the formula to include the new sheet's range (e.g., adding 'Sheet3'!$A:$Z).

Consolidate Data for Complex Layouts
If your worksheets have completely different column structures, consolidate the data into a master worksheet first.
Effortlessly Find Duplicates with WPS Spreadsheet
WPS Spreadsheet provides powerful array functions and intuitive data management tools to easily identify duplicates across multiple sheets, offering a seamless and free experience.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your multiple email lists.
- 2. Consolidate the data: Navigate to the Data tab and click 'Consolidate' to combine your differently structured sheets into one master list.
- 3. Select the master column: Highlight the single column containing all the consolidated email addresses.
- 4. Highlight duplicates instantly: Go to the Data tab, click 'Highlight Duplicates', and visually identify any repeating email addresses in seconds.

Frequently Asked Questions
Can I use a 3D reference like 'Sheet1:Sheet10' with COUNTIF?
No, standard functions like COUNTIF do not support 3D references across multiple sheets. You must evaluate each sheet individually and sum the results, or use an array with explicit sheet names.
Will the formula automatically include new sheets when I add them?
No, if you are using specific sheet references in your formula, you will need to manually update the formula to include the name and range of any newly added worksheets.
What is the best approach if my sheets have completely different column structures?
The most reliable method is to consolidate the data first. Using Power Query or built-in data consolidation tools allows you to create a single master list of emails before checking for duplicates.




