Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Format and validate data
MO-211

Remove duplicate records

  1. 1Select a cell in the data, or the whole range.
  2. 2Data › Remove Duplicates.
  3. 3Unselect All, then tick only the key column the task names: Ref.
  4. 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.

Guests (E holds notes outside the data)
ABCDE
1RefGuestNightsNote
2B-01Osei2n1
3B-02Lind3n2
4B-01Osei2n3
5B-03Ruiz1n4
6b-02Lind4n5
7B-04Okafor2n6
One key column
Do this
  1. 1Select A1:C7. Data › Remove Duplicates. Unselect All, tick Ref. OK.
Excel showsA2:A5: B-01 · B-02 · B-03 · B-04, and rows 6 and 7 empty

Two rows went: the second B-01, and b-02. Capitals make no difference to the comparison.

Every column
Do this
  1. 1On the original data, Remove Duplicates with all three columns ticked.
Excel showsFive rows left: b-02 Lind 4 stays

With every column ticked, a row is only a duplicate if all three match. b-02 has 4 nights, so it stays.

Which copy stays
Do this
  1. 1Look at row 2 after the first example.
Excel showsB-01 Osei 2, the first one

Excel keeps the first row for each key and removes the ones below it.

Cells outside the selection
Do this
  1. 1Compare the notes in column E after the first example.
Excel showsE2:E7 still read n1 to n6

Only the selected range moves up. The notes no longer line up with their rows; select every column that belongs to the data.

In the video
Do this
  1. 1Select A2. Data › Remove Duplicates, Unselect All, tick Ref. OK, and OK on the message.
Excel showsA2:A5: B-01 · B-02 · B-03 · B-04

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

Every column ticked

The dialog starts with every column ticked. A task that names one key column needs Unselect All first, then that column alone.

Data beside the range

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.

Values that only look the same

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.

My data has headers

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.