Skip to main content

Lesson 4.5 – Removing Duplicates

Lesson 4.5 – Removing Duplicates

Duplicate values can cause errors, incorrect calculations, and misleading analysis. Excel provides a simple and reliable tool to remove duplicates from your dataset in just a few clicks. In this lesson, you will learn how to identify and remove duplicate rows safely.


SEO Description

Learn how to remove duplicate values in Excel using the built‑in Remove Duplicates tool to clean data quickly and accurately.

Publication date: 19 March 2025


1. What Are Duplicates?

A duplicate occurs when one or more rows contain the same information. Duplicates often appear when data is imported, copied from other files, or collected from multiple sources.

Examples of duplicates:

  • Two identical customer names
  • Repeated product codes
  • Duplicate email addresses
  • Rows with the same values across all columns

2. How to Remove Duplicates

Steps:

  1. Select your dataset (or click inside an Excel Table).
  2. Go to Data → Remove Duplicates.
  3. Choose the columns you want Excel to check.
  4. Click OK.

Excel will remove duplicate rows and keep only the first occurrence.


3. Choosing Which Columns to Check

You can decide whether Excel should check:

  • A single column (e.g., remove duplicate email addresses)
  • Multiple columns (e.g., same Name + Date)
  • All columns (entire row must match)

Example:

If you select only the “Email” column, Excel removes rows with repeated emails even if other values differ.


4. Removing Duplicates in an Excel Table

If your data is formatted as a Table, the process is even easier:

  1. Click anywhere inside the Table.
  2. Go to Table Design → Remove Duplicates.
  3. Select the columns to check.

Excel automatically updates the Table after removing duplicates.


5. Important Notes

  • Removing duplicates is permanent — deleted rows cannot be restored unless you undo.
  • Always check the correct columns before confirming.
  • Consider making a backup copy of your data.
  • Use filters first if you want to preview duplicates before removing them.

6. Alternative: Highlight Duplicates First

If you want to see duplicates before removing them, use Conditional Formatting:

Home → Conditional Formatting → Highlight Cell Rules → Duplicate Values

This highlights duplicates without deleting anything.


7. Practical Exercise

  1. Create a worksheet named Lesson_4_5_Practice.
  2. Enter a list of at least 20 items with intentional duplicates.
  3. Use Conditional Formatting to highlight duplicates.
  4. Remove duplicates using Data → Remove Duplicates.
  5. Repeat the process by selecting different columns.
  6. Try removing duplicates inside an Excel Table.

Internal Links


Next Module

Module 5 – Basic Data Analysis Tools

Comments

Popular posts from this blog

Part I: Getting Started with SQL Chapter 2: Setting Up Your Environment

  Chapter 2: Setting Up Your Environment Before you write your first query, it’s essential to install and configure a relational database on your workstation. A solid environment ensures you spend time learning SQL—not battling installation errors. In this chapter, we’ll: Compare four popular RDBMS options Walk through installation on Windows, macOS, and Linux Demonstrate how to connect via command-line and graphical tools Load a sample database so you can start querying immediately By the end, your machine will be a fully functional SQL playground. 1. Choosing an RDBMS: MySQL, PostgreSQL, SQLite, SQL Server Different relational database systems excel in different scenarios. Here’s a quick comparison to help you pick one: Feature MySQL PostgreSQL SQLite SQL Server Use case Web apps, LAMP stacks Analytics, GIS, advanced SQL Lightweight, embedded apps Enterprise .NET, Windows ecosystems Licensing GPL (Community) / Commercial (Enterprise) Open Source (PostgreSQL License) Public domain...

Alfred Marshall – The Father of Modern Microeconomics

  Welcome back to the blog! Today we explore the life and legacy of Alfred Marshall (1842–1924) , the British economist who laid the foundations of modern microeconomics . His landmark book, Principles of Economics (1890), introduced core concepts like supply and demand , elasticity , and market equilibrium — ideas that continue to shape how we understand economics today. Who Was Alfred Marshall? Alfred Marshall was a professor at the University of Cambridge and a key figure in the development of neoclassical economics . He believed economics should be rigorous, mathematical, and practical , focusing on real-world issues like prices, wages, and consumer behavior. Marshall also emphasized that economics is ultimately about improving human well-being. Key Contributions 1. Supply and Demand Analysis Marshall was the first to clearly present supply and demand as intersecting curves on a graph. He showed how prices are determined by both what consumers are willing to pay (dem...

“This Sentence Is False”: The Liar Paradox, from Ancient Crete to Modern Code

 “All Cretans are liars,” said the Cretan Epimenides.  “This sentence is false,” echoes every logic textbook.  We’re still arguing 2,600 years later—and the paradox is winning.   _____________________________  /                             \ |   “THIS SENTENCE IS FALSE.”  |  \_____________________________/               |               |  self-reference               v    +---------------------------+    |  Truth flips back on     |    |  itself — paradox loop!  |    +---------------------------+ 1. Meet the Liar The classic one-liner: L: “This sentence is false.” If L is true, then what it asserts—its own falsity—must hold, so L is false. If L is false, then what it asserts isn’t the ca...