In Excel: select the range, then Home ▸ Conditional Formatting ▸ Highlight Cells Rules ▸ Duplicate Values, and pick a fill colour.
On this page7
Select the cells to check (drag over B2:B20, or click a column header for the whole column).
On the Home tab, open Conditional Formatting ▸ Highlight Cells Rules ▸ Duplicate Values.
Choose a fill (e.g. Light Red Fill with Dark Red Text) and click OK.
To extend the check later, reselect a wider range and reapply, or edit the rule in Manage Rules.
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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “marking duplicates in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected duplicates shows up while it is still harmless. 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 turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.
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 “marking duplicates 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.