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.

This challenge keeps the cleanup visible instead of deleting anything right away. We mark the first appearance as Keep, mark repeats as Duplicate, and then count the totals in the summary section.

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.

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.

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.

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

Count unique 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