Excel Practice Test

โ–ถ

Duplicates sneak into spreadsheets faster than you'd think. One pasted column, one merged export, one lazy copy from a colleague, and suddenly your customer list has the same email three times. The good news? Excel gives you a whole toolbox for spotting repeats before they wreck a report. The trick is knowing which tool fits which job.

This guide walks you through every reliable way to find duplicates in Excel, from a two-click visual highlight all the way to Power Query group-by logic. You'll learn the formulas, the menu paths, and the gotchas that trip people up, like trailing spaces and case sensitivity.

By the end, you'll pick the right method in seconds. Before you pick a method, ask yourself two questions. Do you want to see the duplicates or act on them? Highlighting is great for review.

Formulas and Power Query are better when you need to filter, count, or feed the result into another step. Are you matching on one column or several? Multi-column matches need COUNTIFS or Power Query, not the basic Conditional Formatting rule.

Find first, remove later

Always find and review duplicates before you delete anything. Hitting Remove Duplicates straight away is destructive, and Excel won't tell you what it threw out. A good workflow is to highlight first, eyeball the matches, then run a cleanup. If you also need to clear them, see our walkthrough on remove duplicates in Excel for the safe path.

Why method choice matters

11
Methods covered in this guide
2
Clicks for the fastest highlight
50k+
Rows where Power Query beats formulas
1
Click to ruin data with Remove Duplicates

Let's start with the method nine out of ten people reach for first, because it's fast, visual, and lives one ribbon click away. Conditional Formatting paints duplicates in a color of your choice and keeps them painted as you scroll.

It's perfect for a quick audit on a list under 50,000 rows, and it's the right answer when your boss asks for a duplicate check in the next ten minutes. The visual nature also means anyone looking at the sheet can immediately see what's going on.

The downside? It only works on one column at a time and slows down on bigger ranges. That's why pros always have a few backup methods ready, and why this guide covers ten more.

Four core methods compared

๐Ÿ“‹ Conditional Formatting

Select your column or range. Go to Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values. Pick a color from the dropdown, hit OK, and every repeat lights up. The default light red fill with dark red text reads well on white. Want only the unique values flagged? Same dialog, switch the dropdown from Duplicate to Unique.

One catch: the rule highlights every instance, not just the second one onward. If your column has Smith four times, all four cells turn red. That's usually what you want for review, but it can look noisy on a busy sheet.

๐Ÿ“‹ COUNTIF formula

Drop a helper column next to your data and type =COUNTIF($A$2:$A$1000, A2). Drag it down. Any cell returning 2 or more is a duplicate. Sort or filter the helper column from largest to smallest and your repeats float to the top.

For a friendlier flag column, wrap it in IF: =IF(COUNTIF($A$2:$A$1000, A2)>1, "Duplicate", "Unique"). Now you can filter on the word Duplicate directly. Read more about the Excel COUNTIF function if you want the full breakdown.

๐Ÿ“‹ Power Query

For lists over 50,000 rows or when duplicates span multiple columns with weird casing, Power Query is the cleanest tool. Select your table, hit Data → From Table/Range, then in the editor use Group By. Group on the column you care about, set Operation to Count Rows, and click OK. Filter the new Count column to greater than 1.

Power Query refreshes when your source data changes, so you build the logic once and run it forever. It's also case-sensitive by default, which trips people up but is actually a feature.

๐Ÿ“‹ Pivot Table

Pivot Tables give you a duplicate count without writing a single formula. Insert a Pivot, drag your target column into both Rows and Values. The Values area defaults to Count, which is exactly what you want. Any row showing a count of 2 or higher is a duplicate.

The Pivot approach is great when you want a summary you can share. It's less useful if you need to act on individual rows in the source data.

Conditional Formatting is the headline feature, but it's not the whole story. The Duplicate Values rule only looks at one column at a time. If you need to find rows that match across two or three columns, like first name plus last name plus email, you need a formula.

That's where COUNTIFS earns its keep. Think of it as COUNTIF's smarter sibling that accepts pairs of range and criteria, letting you stack as many conditions as you have columns.

The syntax feels long the first time you write it, but it's the same pattern repeated. Once you've used it twice it sticks, and you'll wonder how you ever managed without it.

Formulas at a glance

๐Ÿ”ด COUNTIFS for multi-column matches
  • Formula: =COUNTIFS($A$2:$A$1000, A2, $B$2:$B$1000, B2)
  • Returns: Count of rows matching across both columns
  • Best for: Finding duplicate name + email combos
  • Limit: Slows down on 100k+ rows
๐ŸŸ  EXACT for case-sensitive checks
  • Formula: =SUMPRODUCT((--EXACT($A$2:$A$1000, A2)))>1
  • Returns: TRUE if a case-sensitive match exists
  • Best for: Spotting Smith vs SMITH vs smith
  • Limit: Heavier than COUNTIF on big ranges
๐ŸŸก MATCH between two sheets
  • Formula: =IF(ISNUMBER(MATCH(A2, Sheet2!$A:$A, 0)), "In both", "Only here")
  • Returns: Text label per row
  • Best for: Comparing two lists for overlap
  • Limit: Returns first match only
๐ŸŸข Power Query Group By
  • Path: Data > From Table > Group By > Count Rows
  • Returns: Aggregated table with counts
  • Best for: Large datasets, repeatable workflows
  • Limit: Learning curve for first-timers

Comparing two columns or two sheets is a daily task for anyone reconciling data. Maybe you've got last month's customer export in column A and this month's in column D, and you want to know who's in both lists.

The MATCH function paired with ISNUMBER does this in a single line. Drop =IF(ISNUMBER(MATCH(A2, $D:$D, 0)), "In both", "Only in A") next to your column A and drag down. Repeat the formula on the other side to catch entries unique to column D.

VLOOKUP works for the same task, but it's chattier and returns errors when nothing matches. MATCH plus ISNUMBER is cleaner because you skip the IFERROR wrapper.

If you're new to checking lists for repeats, our guide on how to check for duplicates in Excel has a step-by-step walkthrough with screenshots, including how to handle the awkward case where the two lists live in completely separate workbooks.

Pre-flight checklist

Run TRIM on text columns to strip leading and trailing spaces
Standardize case with UPPER, LOWER, or PROPER if case doesn't matter
Convert text-stored numbers to actual numbers using VALUE
Remove invisible characters with CLEAN
Save a backup copy before any destructive operation
Sort by the suspect column so repeats sit next to each other

Why the prep work? Because Excel treats john@email.com and john@email.com (with a trailing space) as completely different values. So does Apple and apple with a space.

You'll think your formula is broken when really the data just has invisible junk. A quick TRIM and CLEAN pass on your source columns saves hours of head-scratching later.

The CLEAN function in particular is underrated. It strips out the non-printable characters that often hitch a ride on data pasted from PDFs, web pages, or legacy database exports.

Wrap your text in =TRIM(CLEAN(A2)) and you've solved roughly a third of the duplicate-detection problems people complain about online before you even pick a finding method.

Now let's talk Advanced Filter, an underrated tool that's been in Excel since the 90s. Hit Data → Advanced, point it at your range, tick Unique records only, and choose to filter in place or copy to a new location.

The output is your deduped list. It doesn't tell you which rows were duplicates, but it's lightning fast for extracting a clean unique list from a messy column.

Advanced Filter shines when you want a quick unique export without touching the source data. Combine it with sorting and you've got a one-shot cleanup tool.

It's not the right pick when you need to count duplicates or flag them for review, since it just hides or copies, it doesn't annotate. But for the classic ask of give me the unique list of customers from this messy export, nothing beats it for speed.

Step-by-step workflow

broom

Run TRIM and CLEAN on text columns. Standardize case if needed. This step alone fixes about a third of the false negatives people blame on Excel.

compass

Single column under 50k rows? Conditional Formatting. Multi-column or large dataset? COUNTIFS or Power Query. Need a refreshable workflow? Power Query wins.

highlighter

Apply your chosen rule or formula. For COUNTIF, drag the helper column down the full range. Sort or filter to bring duplicates to the top.

eye

Eyeball the duplicates. Are they true repeats or just data-entry variations? This is where TRIM and case-handling pay off.

scale

Sometimes duplicates are legitimate (two orders, same customer). Sometimes they're errors. Make the call before you reach for Remove Duplicates.

save

If cleanup is the goal, run Remove Duplicates on a copy of the sheet. Or export the deduped list to a new tab and keep the original intact.

Speaking of Remove Duplicates, a quick word of warning. The button lives at Data → Remove Duplicates and it's tempting to click straight away. But the tool is permanent.

It deletes rows without showing you what it removed and there's no undo once you save and close. Always work on a copy or duplicate the sheet first.

If your goal is cleanup, our guide on how to delete duplicates in Excel covers the safe sequence. The pattern is always the same: copy the sheet, find first, review, then remove on the copy.

Keep the original intact so you've got something to roll back to if your boss decides those duplicates were actually meaningful after all.

Try the Excel Certification Practice Test

What about the visual approach beyond the basic rule? Conditional formatting in Excel isn't just for duplicates. You can layer rules to show duplicates in red and unique values in green, or create a heat map of how often each value appears.

Combine the Duplicate Values rule with a separate Format only cells that contain rule keyed to your COUNTIF helper, and you get a multi-color report at a glance.

Want triplicates highlighted differently from doubles? Build a custom rule with a formula like =COUNTIF($A:$A, A1)>2 and apply a darker color.

Now your eye can instantly tell which entries are mild duplicates and which are repeated five or six times, without doing any math in your head. That's a small upgrade with a huge payoff in review speed.

Visual highlight vs formula

Pros

  • Conditional Formatting is two clicks, no formula required
  • Visual highlight makes review easy
  • Works on any selected range
  • Can be cleared just as quickly as it's applied

Cons

  • Slows down workbooks above 50,000 rows
  • Single column only for the built-in rule
  • Not case-sensitive, can miss subtle differences
  • Highlights every instance, not just the repeats

COUNTIF wins on flexibility. You can filter on the count, sort, copy the result somewhere else, and combine with other formulas. Conditional Formatting wins on speed and visual appeal.

Most pros use both: Conditional Formatting for the first look, COUNTIF when they need to do something with the duplicates beyond just seeing them.

The two methods complement each other nicely. Run the visual rule first to get a sense of how bad the problem is, then drop in a COUNTIF helper if you need to filter, count totals, or build a report.

There's no rule against having both active on the same sheet, and the helper column doubles as documentation that you actually checked. Auditors love that kind of thing.

Speed and accuracy comparison

๐Ÿ”ด Method speed comparison
  • Conditional Formatting: Instant on small sheets, slow above 50k rows
  • COUNTIF helper column: Fast up to 200k rows, predictable
  • Power Query: Slower setup, fastest on million-row datasets
  • Pivot Table: Medium speed, refreshable on demand
๐ŸŸ  Method accuracy comparison
  • Conditional Formatting: Not case-sensitive, ignores hidden characters
  • COUNTIF: Not case-sensitive, sees exact text match
  • EXACT + SUMPRODUCT: Case-sensitive, slowest but most precise
  • Power Query: Case-sensitive by default, handles whitespace

Find & Replace is the manual approach and it works for tiny lists. Press Ctrl+F, type the value you suspect is duplicated, click Find All, and Excel shows you every cell containing that value.

It's clunky for anything bigger than 50 rows, but it's perfect when you just want to verify one specific entry appears twice.

For pure visual scanning, sorting your column alphabetically or numerically also brings duplicates next to each other. It's the oldest trick in the book and it still works.

The sort approach is also the only way to spot near-duplicates: entries like Robert Smith and Bob Smith that aren't exact matches but probably refer to the same person. Software can't catch those reliably, but a human scanning a sorted list usually can.

Practice Excel Functions Questions and Answers

Let's tackle the case-sensitivity question head-on, because it bites everyone eventually. Imagine you're cleaning a product code list with entries like AB123 and ab123. Are they the same product or two different SKUs?

Excel's default tools say they're identical. If your business logic says they're different, you need EXACT.

The formula =SUMPRODUCT((--EXACT($A$2:$A$1000, A2)))>1 returns TRUE when there's a case-sensitive duplicate of A2 anywhere in the range.

The double negative converts TRUE/FALSE to 1/0, SUMPRODUCT adds them up, and if the total is greater than 1, you've got a repeat. It's heavy on big ranges, so use Power Query for anything over 100,000 rows.

Here's a battle-tested workflow for messy real-world data. Step one, copy your source column into a new sheet so the original stays safe.

Step two, build a clean version next to it: =TRIM(CLEAN(UPPER(A2))) normalizes case, strips spaces, and removes invisible characters.

Step three, run COUNTIF on the clean column. Step four, filter the helper to show counts greater than 1 and review. Step five, decide what to do with the matches.

This four-formula combo catches almost every duplicate that the basic tools miss. Most data pros build this exact pattern into a template and reuse it on every new import.

Mistakes to avoid

Trusting Conditional Formatting on case-sensitive data
Forgetting to anchor ranges with dollar signs in COUNTIF
Running Remove Duplicates before reviewing the matches
Skipping TRIM and CLEAN on imported text data
Comparing dates stored as text against real date values
Ignoring leading zeros that get stripped during import

Anchored ranges deserve special mention. If you write =COUNTIF(A2:A1000, A2) without dollar signs, the range shifts as you drag the formula down.

Row 100 will check A100:A1098, missing earlier values. Always lock the range: =COUNTIF($A$2:$A$1000, A2). The second argument stays relative so it points at the current row.

This is the single most common bug in duplicate-finding formulas, and it's silent: your sheet won't error, it'll just under-report duplicates.

The fix is muscle memory. Press F4 right after you select the range to add the dollar signs automatically, every single time. Build the habit and you'll never debug an unanchored range again.

Scope-specific approaches

๐Ÿ“‹ Find duplicates in one sheet

Use Conditional Formatting for visual review or COUNTIF for action. Both work on a single column. For multiple columns, switch to COUNTIFS with each column listed as a criteria pair, or concatenate the columns into a helper and run COUNTIF on the combined string.

๐Ÿ“‹ Find duplicates between two sheets

Use MATCH wrapped in ISNUMBER. Place the formula in a helper column on Sheet1 pointing at Sheet2's range. Drag down. Cells returning TRUE exist in both sheets. Repeat from the other direction to catch entries unique to Sheet2.

๐Ÿ“‹ Find duplicates in a workbook

Power Query is the right tool here. Append all sheets into one query, add a Source column to track which sheet each row came from, then Group By on your match column to see counts across the whole workbook. This catches cross-sheet duplicates that single-sheet methods miss.

What if you have a million rows? At that scale, Conditional Formatting will freeze your workbook and COUNTIF will take minutes per recalculation.

Power Query handles the load comfortably because it processes data outside the workbook grid. Load your data as a connection, run Group By with Count Rows, filter to counts greater than 1, and load the result back as a table.

The whole operation runs in seconds even on huge datasets. The trick at this scale is to load as a connection only, not as a worksheet.

The full million rows don't need to live in your grid; you only need to see the duplicates. Loading just the filtered output keeps your file small and your scrolling smooth, while the underlying query still has access to every row when it refreshes.

One more workflow worth mentioning: the audit trail. When you find duplicates in a shared workbook, don't just delete them silently.

Add a comment or a note in a status column explaining what you found, what you removed, and when. Future-you (or future-colleague) will thank you when the question comes up six months later.

A simple format like 2026-05-10 NB: removed 47 duplicate customer rows after TRIM cleanup in a notes tab is enough. It's the difference between defensible data work and mystery deletions.

Audit trails also save your bacon when someone asks why the row count dropped. You can point to your notes and the saved backup file rather than scrambling for an explanation.

Take the Excel Basic and Advanced Quiz

Pulling it all together: the right method depends on size, columns, and what you'll do next. For a quick visual check on a small sheet, Conditional Formatting wins. For action on medium datasets, COUNTIF or COUNTIFS.

For huge data or repeatable workflows, Power Query. For case-sensitive precision, EXACT with SUMPRODUCT. Master those four and you'll handle any duplicate-finding task Excel throws at you.

The methods stack, too. Start with a Conditional Formatting pass to spot obvious repeats. Add a COUNTIF helper column for filtering. Move to Power Query when the data outgrows the grid.

Each tool builds on the last, so the time you spend learning one feeds into the next. Keep this guide bookmarked and you'll never stare blankly at a messy spreadsheet again. The duplicates won't stop coming, but at least you'll have a plan.

One last thought: practice on safe data before you trust your skills with real work. Build a sample sheet with 200 rows of fake customer info, deliberately duplicate twenty entries, then run each method against it. You'll feel the speed differences, hit the case-sensitivity gotchas, and see how Power Query refreshes when you tweak the source. Twenty minutes of practice on dummy data saves twenty hours of fixing real data later. That's the ratio every Excel pro learns the hard way.

And if you ever feel stuck, remember the universal escape hatch: copy your column to a fresh sheet, sort it, and scroll. Your eyes will catch what formulas miss, especially the soft duplicates like name variations and abbreviated company names. Software is a tool, but human pattern matching is still the gold standard for messy data review. Combine both and you'll never miss a repeat that matters.

Finally, share what you learn. The next person on your team to inherit a duplicate-riddled sheet will thank you for a quick wiki page or pinned Slack message documenting which method works for which scenario. Excel knowledge spreads slowly inside teams because nobody wants to admit they didn't know about Power Query. Be the one who shares the shortcut, the formula, and the warning about Remove Duplicates. That habit pays back across every team you'll ever join.

Excel Find Duplicates Questions and Answers

What's the fastest way to find duplicates in Excel?

Conditional Formatting wins on speed. Select your column, go to Home then Conditional Formatting then Highlight Cells Rules then Duplicate Values. Pick a color and click OK. Every duplicate lights up in two clicks. It's the right pick for any single-column review on sheets under 50,000 rows.

How do I find duplicates across multiple columns?

Use COUNTIFS with each column as a criteria pair. The formula =COUNTIFS($A$2:$A$1000, A2, $B$2:$B$1000, B2) returns the count of rows where both column A and column B match. Anything greater than 1 is a duplicate. For three or more columns, just add more pairs to the formula.

Why isn't Conditional Formatting catching all my duplicates?

The most common cause is hidden characters: trailing spaces, leading spaces, or non-breaking spaces pasted from web sources. Run TRIM and CLEAN on your column first. Conditional Formatting also isn't case-sensitive, so if case matters, you'll need an EXACT-based formula or Power Query instead.

How do I find case-sensitive duplicates in Excel?

Use the formula =SUMPRODUCT((--EXACT($A$2:$A$1000, A2)))>1 in a helper column. The EXACT function does a case-sensitive comparison, SUMPRODUCT counts the matches, and the greater-than-1 check flags duplicates. Power Query also handles case sensitivity by default if you'd rather skip the formula.

Can I find duplicates between two different sheets?

Yes. Use MATCH wrapped in ISNUMBER: =IF(ISNUMBER(MATCH(A2, Sheet2!$A:$A, 0)), "In both", "Only in Sheet1"). Drop it in a helper column on Sheet1 and drag down. Cells returning In both exist in both sheets. Repeat the formula from Sheet2 to catch entries unique to that sheet.

Should I use Find Duplicates or Remove Duplicates?

Always find first. Removal is permanent and Excel won't show you what it threw away. Highlight or count the duplicates, review them carefully (some are legitimate), then decide what to remove. Working on a copy of your sheet before any destructive operation is also a good habit.

How do I find duplicates in a column with thousands of rows?

For up to 50,000 rows, Conditional Formatting still works but starts to lag. For 50,000 to 200,000, switch to a COUNTIF helper column. Above that, use Power Query with a Group By and Count Rows operation. Power Query handles million-row datasets without breaking a sweat.
โ–ถ Start Quiz