Highlight Duplicate Cells in Excel

There are two ways to “highlight duplicate cells in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: select the range, then Home ▸ Conditional Formatting ▸ Highlight Cells Rules ▸ Duplicate Values, and pick a fill colour.

On this page7
▤Annotated stepsExcel
1

Select the cells to check (drag over B2:B20, or click a column header for the whole column).

2

On the Home tab, open Conditional Formatting ▸ Highlight Cells Rules ▸ Duplicate Values.

3

Choose a fill (e.g. Light Red Fill with Dark Red Text) and click OK.

4

To extend the check later, reselect a wider range and reapply, or edit the rule in Manage Rules.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

Conditional Formatting colours repeated cells automatically, giving you an instant visual map of where duplicates sit — no formula and no helper column. The built-in Duplicate Values rule compares every cell in the selection and shades the ones that appear more than once. Because the rule is live, the colours update the moment you edit, paste or add data, so duplicates can never sneak back in unseen. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. For “highlight duplicate cells in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected duplicates change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a data step that keeps your analysis trustworthy useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

You have customer emails in B2:B20. Select that range, go to Home ▸ Conditional Formatting ▸ Highlight Cells Rules ▸ Duplicate Values, and choose the red fill. Every email that appears twice — say jo@acme.com sitting in B4 and B17 — turns red in both cells, while one-off addresses stay white. Type a new repeat and it reddens instantly. When you want to see duplicates at a glance during data entry or review — spotting a double-booked email or a repeated invoice number on screen — coloured cells beat any formula, because the eye catches them instantly and the rule keeps watching as you type. When the result is not what you expected, undo straight away rather than repairing it by hand — undo restores the sheet exactly, while manual fixes tend to leave small inconsistencies behind that surface later.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “highlight duplicate cells in excel”: the answer is at the top of this page, and the sections above explain why each step matters, so a variation of the problem does not stump you. Try it once on a copy of a real file and the steps stick far better than re-reading them.

Common mistakes

  • Selecting one column when duplicates should be judged across several — the rule only compares the cells you highlight.
  • Expecting the colour to remove anything; highlighting is purely visual, deletion is a separate step.
  • Leaving the selection too small, so duplicates outside the range never get coloured.
  • Confusing "Duplicate Values" with "Unique" in the same dialog — the dropdown switches between colouring repeats and colouring one-offs.

Frequently asked questions

How do I highlight whole rows, not just cells?

Use a formula rule instead: New Rule ▸ Use a formula, enter =COUNTIF($B:$B,$B2)>1 and apply the fill to the whole row range.

Can I highlight duplicates in one colour and uniques in another?

Yes — add two rules: one Duplicate Values rule and one Unique Values rule, each with its own fill.

How do I clear the highlighting?

Home ▸ Conditional Formatting ▸ Clear Rules removes the colouring without touching your data.