Removing duplicate entries?

Aphex Kid

New Member
Joined
Feb 19, 2002
Messages
12
I have about 5000 rows (a1:g5000) of information, but some of the rows have duplicate information. How do I set up my document so that all duplicate entries in the B column remove the entire corresponding row?

(ie. if B501, b502 and b503 were the same value as b500, it deletes (a501:g503)

Thanks..
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Are you only interested in duplicate values on adjacent rows? If so, use an Advanced AutoFilter with a computed criteria of =B2=B1, select the displayed data rows and delete them.
This message was edited by Mark W. on 2002-02-20 08:23
 
Upvote 0
Yes, because it's sorted by value in the B column...

There can be anywhere from 1-10 occurences of the same value, but because they're always sorted, they're always adjacent.
 
Upvote 0
If I put in =b2=b1 in the criteria range, it tells me the reference is not valid. Am I doing something wrong?
 
Upvote 0
On 2002-02-20 08:31, Aphex Kid wrote:
If I put in =b2=b1 in the criteria range, it tells me the reference is not valid. Am I doing something wrong?

=B2=B1 isn't entered into the Advanced AutoFilter's criteria field -- the cell range that contains this formula is. If you're not familiar with computed criteria they must as a mininum consist of 2 rows -- the first row being blank. So, if you entered =B2=B1 into E2 you're criteria range should be E1:E2.
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,332
Members
448,566
Latest member
Nickdozaj

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top