Remove duplicate records
- 1Select a cell in the data, or the whole range.
- 2Data › Remove Duplicates.
- 3Unselect All, then tick only the key column the task names: Ref.
- 4Leave My data has headers ticked. OK.
Remove Duplicates keeps the first row for each value of the columns you tick and removes the later ones.
What the MO-211 task asks
Eight of our ten MO-211 practice exams have it, and each names one key column and how many rows should be left: “Two bookings were entered twice. Remove the duplicates on Booking Ref, leaving 12 bookings in rows 4 to 15.”
Our grader checks that the key column has no repeats and that the data ends on the row the task gives. Ticking every column leaves rows that differ in some other column, so too many rows remain.
The task says the key once; everything else about the rows can differ.
Worked examples
Set up the grid below to follow along. Each example starts from it as shown; every result is what Excel showed.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Ref | Guest | Nights | Note | |
| 2 | B-01 | Osei | 2 | n1 | |
| 3 | B-02 | Lind | 3 | n2 | |
| 4 | B-01 | Osei | 2 | n3 | |
| 5 | B-03 | Ruiz | 1 | n4 | |
| 6 | b-02 | Lind | 4 | n5 | |
| 7 | B-04 | Okafor | 2 | n6 |
- 1Select A1:C7. Data › Remove Duplicates. Unselect All, tick Ref. OK.
Two rows went: the second B-01, and b-02. Capitals make no difference to the comparison.
- 1On the original data, Remove Duplicates with all three columns ticked.
With every column ticked, a row is only a duplicate if all three match. b-02 has 4 nights, so it stays.
- 1Look at row 2 after the first example.
Excel keeps the first row for each key and removes the ones below it.
- 1Compare the notes in column E after the first example.
Only the selected range moves up. The notes no longer line up with their rows; select every column that belongs to the data.
- 1Select A2. Data › Remove Duplicates, Unselect All, tick Ref. OK, and OK on the message.
The first example, done in Excel on the same sheet.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
The dialog starts with every column ticked. A task that names one key column needs Unselect All first, then that column alone.
Remove Duplicates moves only the cells it works on. Notes in a column outside the range stay put and end up beside the wrong rows.
Excel compares what the cells show. The same date formatted as 6/3/2026 and as 6 Mar 2026 is kept twice, and Y with a trailing space is not a duplicate of Y.
Unticked, the heading row is treated as data. Leave it ticked when the first row holds headings.
FAQ
Does Remove Duplicates delete whole rows?
No. It removes cells from the range it works on and moves the rest up. Anything outside the range stays where it was.
Are B-02 and b-02 duplicates?
Yes. The comparison ignores capitals, so the second of the two is removed.
Which row is kept?
The first one, nearest the top. The later copies are removed.
Try it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
