Home
Challenges
Remove Duplicate Names
Cleanup
Easy

Remove Duplicate Names

An Excel name list has duplicate entries, and you need to separate first appearances from repeated names before reviewing the data.

AuthorExcelClash Team
PublishedApr 03, 2026
Remove Duplicate Names

The Problem

Duplicate names are easy to create and annoying to clean. A list can look normal at first, then you notice the same person was entered twice or three times in different places.

Deleting rows immediately can be risky because the reviewer loses the trail of what was removed. A safer first pass is to mark the first appearance and repeated rows, then use the summary to understand how much cleanup is needed before anything gets deleted.

The flow below shows that audit-first approach. The list keeps every row, while the status column explains which names are first appearances and which rows are repeats.

Duplicate name cleanup problem flow
The Problem: Duplicate Cleanup Should Stay Auditable Marking rows first keeps the original list visible while showing what needs review.

In this workbook, the raw name list stays in column A and the status belongs beside each row. The challenge is to mark first appearances as keep, mark later repeats as duplicate, and complete the three summary checks at the bottom.

  • The first time a name appears should stay as the kept row.
  • Later appearances of the same name should be marked as duplicates.
  • The summary should show total names, unique names, and duplicate rows.

That makes the cleanup easier to explain. The sheet can show the original list, the row-level decision, and the totals without hiding the repeated records.

Related Challenge to This Problem

  • Identify Duplicate Transactions
  • Standardize Full Names
  • Find Missing Membership IDs

How We Solve It

The easiest way to do this is to count how many times the current name has appeared from the first row down to the current row. If the count is 1, it is the first appearance. If the count is higher, it is a repeat.

Method 1: Progressive COUNTIF

Method 1 Visualization
Method 1: Count each name as the list grows to catch repeats as soon as they appear.

This is the method the validator expects. The range starts at $A$2 and expands as the formula is copied down. That means the first time a name appears, the count is 1 and the row is marked Keep. Later appearances become Duplicate.

This solves the challenge directly because the worksheet needs to decide whether each row is the first appearance of a name or a repeated one. The expanding range checks the history up to the current row, which makes the keep-versus-duplicate label possible.

=IF(COUNTIF($A$2:A2,A2)=1,"Keep","Duplicate")

Method 2: MATCH with ROW

Method 2 Visualization
Method 2: Compare each row to the first time that name appears in the list.

This version compares the current row number to the position of the first match. It is another solid way to tell whether the current row is the first occurrence or a later duplicate.

This solves the same duplicate problem with a position check instead of a running count. If the current row lines up with the first match for that name, the entry stays; if not, the row must be a repeat.

=IF(ROW(A2)=MATCH(A2,$A$2:$A$9,0)+ROW($A$2)-1,"Keep","Duplicate")

Method 3: Excel's Remove Duplicates tool

Method 3 Visualization
Method 3: Use Excel's built-in tool when you just need a one-time cleanup.

The built-in Remove Duplicates tool is fast when you want a final cleaned list right away. The tradeoff is that it removes rows rather than showing the logic in the worksheet, so it is less useful when you want an auditable process.

This solves the one-time cleanup problem, but not the audit problem. It is useful when the goal is simply to remove repeated names, though it does not leave behind a visible rule or row-by-row status like this challenge does.

Function Explanation

1. COUNTIF

COUNTIF counts how many cells match a condition. In this worksheet it tells us whether the current name is showing up for the first time or again.

The expanding range is the key detail. It only looks from the first data row down to the current row, so the first appearance gets counted as one and later repeats get higher counts.

Learn more this functionCOUNTIF

2. IF

IF turns the count into a readable action label. That keeps the results simple for anyone reviewing the list.

Those labels are easier to filter and count than raw occurrence numbers, especially when the list is being reviewed by someone who did not build the formula.

Learn more this functionIF

3. COUNTA

COUNTA counts non-empty cells and gives the total starting size of the list. That helps the summary confirm how many names were reviewed in the first place.

It is the baseline for the cleanup summary: total rows first, then unique rows and duplicate rows from the status labels.

Learn more this functionCOUNTA

If imported names contain extra spaces, duplicate checks can miss matches that look identical to the eye. In real data, trimming the names first is often a good cleanup step.

Try Yourself

Mark each row as keep or duplicate, then complete the summary so the worksheet shows the total number of names, the number of unique names, and the number of duplicate rows.

1
Objective #1
Cell: B2-B9

In B2:B9, label each name as "Keep" for the first appearance or "Duplicate" for later repeats.

2
Objective #2
Cell: B11

Count all names in B11.

3
Objective #3
Cell: B12-B13

Use the status labels to count kept names in B12 and duplicate rows in B13.

Tactical Arena
Objectives Met: 0 / 0
Share this challenge
Share this challenge

Let others know about this challenge!

Related Challenges
Scenario Simulation
#2
Assign Random Values From a List

An Excel team assignment sheet needs a fair random result, and each person must be matched to one option from the approved list.

Easy
Analysis
#3
Calculate Days Between Dates

An Excel project schedule has start and end dates, and you need to measure the gap in total days, workdays, and date parts.

Easy
Cleanup
#4
Standardize Full Names

An Excel name list is messy and inconsistent, and you need to clean the spacing and capitalization into one standard format.

Easy
Cleanup
#5
Split First and Last Names

An Excel contact list stores full names in one column, and you need to separate first names from last names.

Easy
Discussion
0 Feedbacks
ExcelClash

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster—without boring lessons. Just hands-on practice that actually sticks.

Navigation
Back to Challenges
Go to Dashboard
Platform Home
Discover
SUM FunctionsLookup FunctionsConditional FunctionsLogical Functions
Support
About UsContact UsPrivacy PolicyTerms of Service
© 2026 ExcelClash, Inc. All rights reserved.
Objectives Met: 0 / 0