Function Problems

How to Disable the Remove Duplicates Adjacent Data Warning in Excel

John WilsonJohn Wilson Oct 23, 2026 870 views

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.

How to Disable the Remove Duplicates Adjacent Data Warning in Excel
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 you start

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.

Solution 1Recommended

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.

1
Select your target data

Highlight the specific column or range where you want to remove duplicate values.

2
Click Remove Duplicates

Go to the Data tab on the Excel ribbon and click the 'Remove Duplicates' button.

3
Handle the warning dialog

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.

Manually select 'Continue with current selection'
Why does Excel do this?: If you remove duplicates in column A but leave column B untouched, the remaining rows in column A shift up, completely breaking the relationship between the data in row A and row B.
Free Microsoft Office alternative

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. 1. Download and Install WPS Office: Get WPS Office for free from the official website and follow the easy installation prompts.
  2. 2. Open your spreadsheet: Launch WPS Spreadsheets and open your existing Excel workbook directly.
  3. 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.
100% compatible with Microsoft Excel (.xlsx, .xls, .csv) files, ensuring no format loss.Intuitive Data tab with streamlined and easy-to-use duplicate removal tools.Free and lightweight, running smoothly on both older and newer computer systems.Familiar user interface that guarantees a seamless transition with zero learning curve.
microsoft office alternative - wps office

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.