How to Disable the Remove Duplicates Adjacent Data Warning in Excel
Question details
The user wants to suppress or disable the warning message that appears when using the Remove Duplicates feature on a partial data range that has adjacent data.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Removing duplicates in a specific column or partial range while other data exists in adjacent columns.
- Observed behavior
- Excel interrupts the process with a warning asking whether to expand the selection or continue with the current selection. This prompt cannot be disabled by default.
Before proceeding, ensure you clearly understand whether you want to delete duplicates only in the selected column or across the entire adjacent dataset, as doing this incorrectly can permanently misalign your row data.
Manually select 'Continue with current selection'
Since Excel does not offer a built-in toggle to disable this warning, you must manually handle the prompt or select the specific action each time.
Microsoft Excel incorporates this warning as a hardcoded safety feature. Its purpose is to prevent users from accidentally misaligning related data in adjacent columns. Because it is a core UI prompt, there is no checkbox in Excel's Options menu to turn it off.
Highlight the specific column or range where you want to remove duplicate values.
Go to the Data tab on the Excel ribbon and click the 'Remove Duplicates' button.
When the 'Remove Duplicates Warning' dialog appears, select the 'Continue with the current selection' radio button and click 'Remove Duplicates...' to proceed without expanding your range.

Bypass the warning using a VBA Macro
If you frequently need to remove duplicates in a specific range and the prompt disrupts your workflow, you can use a simple VBA macro to automate the process without triggering the UI warning.
Submit a feature request to Microsoft
If you believe there should be a native toggle for this warning, you can submit a request directly to the Microsoft Excel product team.
Try WPS Office for Efficient Spreadsheet Data Management
If rigid warnings in Microsoft Excel are slowing down your daily workflow, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly spreadsheet environment that perfectly handles Microsoft Excel formats without the hefty subscription fee.
- 1. Download and Install WPS Office: Get WPS Office for free from the official website and follow the easy installation prompts.
- 2. Open your spreadsheet: Launch WPS Spreadsheets and open your existing Excel workbook directly.
- 3. Manage duplicates easily: Navigate to the Data tab and use the built-in Highlight Duplicates or Remove Duplicates tool to efficiently clean your dataset.

Frequently Asked Questions
Why does Excel warn me about adjacent data when removing duplicates?
Excel detects data next to your selection and warns you because removing data in just one column will cause the remaining rows to shift up. This action misaligns the cleaned column with the untouched adjacent data, potentially ruining your dataset's integrity.
Can I permanently turn off the 'Expand the selection' warning in Excel?
No, currently Microsoft Excel does not provide a built-in option, registry tweak, or setting in the Options menu to permanently disable this specific warning dialog.
Does disabling 'Enable background error checking' stop this prompt?
No. The adjacent data warning for the Remove Duplicates feature is a standard, hardcoded dialog prompt, not a background error check (like the green triangles in cells). Changing error checking options will not affect it.
Is there any workaround to avoid the warning entirely?
The most effective workaround is using a VBA macro (e.g., using the Selection.RemoveDuplicates method) to perform the duplicate removal. VBA executes the command directly without triggering the standard user interface warnings.




