Skip to main content

How to remove duplicates that are case sensitive in Excel?

Author: Xiaoyang Last Modified: 2024-11-04
A screenshot showing data with duplicates for case-sensitive removal in Excel

Normally, the Remove Duplicates feature in Excel can help you remove the duplicate values quickly and easily, however, this feature is not case sensitive. Sometimes, you want to remove duplicates that are case sensitive to get the following result, how can you handle this task in Excel?

Remove duplicates but keep the first that are case sensitive with formula

Remove all duplicates that are case sensitive with helper formula

Remove duplicates that are case sensitive with Kutools for Excel


Remove duplicates but keep the first that are case sensitive with formula

The following formula may help you to remove the case sensitive duplicate values and keep the first, please do as follows:

1. Enter this formula =IF(SUMPRODUCT(--EXACT(A2,$C$1:C1)),"",A2) into a blank cell, where you want to put the result, C2, for example, see screenshot:

A screenshot of Excel formula to remove case-sensitive duplicates and keep the first occurrence

Note: In the above formula, A2 is the first cell of the list excluding header that you want to use, and C1 is the cell above the cell that you put the formula.

2. Then drag the fill handle down to the cells that you want to apply this formula, and the duplicate values but the first that are case sensitive have been replaced with blank cells. See screenshot

A screenshot showing case-sensitive duplicates removed except for the first occurrences


Remove all duplicates that are case sensitive with helper formula

If you want to remove all duplicates that are case sensitive, you can apply a helper formula column, do as follows:

1. Enter the following formula into adjacent cell of your data,B2, for instance, =AND(A2<>"",SUMPRODUCT(--(EXACT(A2,$A$2:$A$15)))>1), see screenshot:

A screenshot of Excel helper formula for identifying case-sensitive duplicates

Note: In the above formula, A2 is the first cell of the data range excluding header, and A2:A15 is the used column range that you want to remove the duplicates case sensitive.

2. Then drag the fill handle down to the cells that you want to contain this formula, and all the duplicates are displayed as TRUE, and unique values are displayed as FALSE in the helper column, see screenshot:

A screenshot of the helper column with TRUE for case-sensitive duplicates and FALSE for unique values

3. And then you can filter all the duplicate values based on the helper column. Select the helper column, click Data > Filter to activate the filter, and then click the triangle button at the right corner of cell B1. Check only the TRUE option in the list box. See screenshot:

A screenshot of Excel filter options to show only duplicates for deletion

4. Then click OK, only the duplicate values that are case sensitive have been filtered out, select the filtered data, then click Home > Delete > Delete Sheet Rows, see screenshot:

A screenshot showing selected case-sensitive duplicates for deletion

5. And all the rows of duplicate values that are case sensitive have been deleted at once, then you should cancel the Filter function to show the unique values, see screenshot:

A screenshot of data showing only unique values after removing duplicates

6. At last, you can delete the cell contents of column B as you need.

Tips: If you want to keep the original data, you can copy the filtered data and pasted them to another location instead of removing them.


Remove duplicates that are case sensitive with Kutools for Excel

If you have Kutools for Excel, with its Select Duplicate & Unique Cells utility, you can quickly select or highlight the duplicate values that are case sensitive and then remove them at once.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as follows:

1. Select the data range that you want to remove the case sensitive duplicates.

2. Then click Kutools > Select > Select Duplicate & Unique Cells, see screenshot:

A screenshot showing the Select Duplicate & Unique Cells option in Kutools tab on the ribbon

3. In the Select Duplicate & Unique Cells dialog box, select Duplicates (Except 1st one) or All duplicates (Including 1st one) you need, and then check Case sensitive option, see screenshot:

A screenshot of Select Duplicate & Unique Cells dialog box with options for selecting case-sensitive duplicates

4. Then click Ok button:

(1.) If you choose Duplicates (Except 1st one) option, the duplicate values excluding the first record will be selected. Then, press Delete key to remove them all at once, see screenshot:

A screenshot showing case-sensitive duplicates selected except for the first instance

(2.) If you choose All duplicates (Including 1st one) option, all duplicates that are case sensitive are selected. Then, press Delete key to remove them all at once, see screenshot:

A screenshot showing all case-sensitive duplicates selected

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Demo: Remove duplicates that are case sensitive with Kutools for Excel

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!