![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 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.. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
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 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 12
|
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. |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
See my edited response above.
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2002
Posts: 12
|
If I put in =b2=b1 in the criteria range, it tells me the reference is not valid. Am I doing something wrong?
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Feb 2002
Posts: 12
|
Never mind ... got it sorted. Thanks!
|
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|