Back to articles
Intermediate
2010-07-223 min read
#duplicates

Removing Duplicates in Excel 2008

Table of Contents

Archived Excel 2008 for Mac workaround: This example removes adjacent repeated weights from a date-ordered list. For current Excel, see how to remove duplicates and keep the right row and Microsoft's current duplicate-removal guidance.

In my last post I used a formula and the Find box to remove duplicate values in Excel 2003. This follow-up uses a different way to select the rows: the Excel 2008 for Mac Find dialog shown below has no Find All button.

Find All Button

The Find All step from the Excel 2003 example isn't available in this historical Mac dialog. That limitation applies to the version shown here, not to current Excel for Mac.

No Find All Option in Excel 2008

How to Remove Duplicates in Excel 2008

I still need to remove repeated values in the Weight column on my spreadsheet. The following procedure keeps the first row in each consecutive run of equal weights in the original date order.

Sort the spreadsheet in ascending order by Date, keeping each date and its weight together.

In cell C2, enter =B2=B1. The result is TRUE when the Weight in B2 equals the cell immediately above it, and FALSE when they differ. Copying it down compares each row with the preceding row. In C2, B1 is the Weight header, so the first numeric weight returns FALSE.

This checks adjacent rows only. A Date sort preserves the chronological order but doesn't group all equal weights together. If a weight reappears after a different weight, this formula won't flag it. FALSE therefore does not mean the weight is unique in the whole list.

Copy the formula down by double clicking the fill handle.

Remove Duplicates Formula Excel 2003

Select all formulas by making C2 the active cell, and using the keyboard shortcut Cmd+Shift+Down arrow.

Copy, and then choose Edit > Paste Special > Values. This fixes the TRUE/FALSE results before the next sort changes the row order.

Enter a label in cell C1. (I used ID)

Select cell C2 and click the Sort Ascending button on the toolbar. Keep the Date, Weight, and helper values together when sorting the records.

Sort Ascending Icon

Scroll down column C and select the first TRUE value.

Use the keyboard combination Cmd+Shift+Down arrow to select the remaining TRUE values.

Right-click on one of the TRUE cells, and select Delete... from the popup menu.

In the Delete dialog box, select Entire Row and then click OK.

Sort Ascending Icon

Remove column C by right-clicking the header, and click Delete from the popup menu.

Check the remaining records and sort them by Date again if needed. You have kept the first row from each consecutive run of equal Weight values in the original chronological list. A weight that reappeared later after a different weight remains.

Enjoyed this guide?

Join our newsletter to get the latest Excel tips delivered to your inbox.

You can unsubscribe anytime. See our Privacy Policy.

Archived comments

Comments migrated from the previous version of the site. Adding new comments is disabled.

Jesswww.yesmagazine.orgAugust 12, 2011 at 09:39 PM
Wow! So helpful! Thanks for this brilliant workaround.
calvinSeptember 8, 2011 at 08:15 PM
What if you have more than a few different values to sort by?
Gregoryexcelsemipro.comSeptember 9, 2011 at 02:56 AM
I'm not exactly sure what you are referring to. Are the different sort values in different columns, or in the same column? Perhaps you could be a bit more precise, or send me a spreadsheet example. Thanks.
IgorDecember 12, 2011 at 02:30 PM
Sorry, what does it mean "Copy the formula down by double clicking the fill handle"?.
Gregoryexcelsemipro.comDecember 12, 2011 at 02:38 PM
When a cell is active, the bottom right corner has a little "square" that is called a "fill handle." Your cursor will change when you hover over this fill handle. You can click and drag the fill handle down to copy a formula, or a double click will do the same thing.
MinJanuary 12, 2012 at 03:32 PM
Wow! Thank you so much! This worked beautifully and saved me soooo much time!
Gregoryexcelsemipro.comJanuary 13, 2012 at 03:18 AM
Always glad to help.
CharlotteJune 13, 2012 at 07:08 PM
Thank you so much, that's just what I needed! Now, if only the TRUEs could be also color coded... This is my very first experience with formulas. (I'm a graphic designer -- Spread sheets are Greek to me!)
Gregoryexcelsemipro.comJune 15, 2012 at 05:03 AM
Conditional Formatting will give you color for the TRUE's. :)
Davewww.PreventMacularDegeneration…January 1, 2013 at 02:13 PM
Thank you! I can't think of anything worse than paying Microsoft for an upgrade I don't need!!!