Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GUS GUS is offline
external usenet poster
 
Posts: 45
Default delete rows if dublicate cell value in column 2

Another question
range(a1:h20000) has some data
I want to delete the entire row if a value in column d apears
again in other cell (row,column d)
In other words delete dublicate rows compare only the value in column d


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default delete rows if dublicate cell value in column 2

gus,

Use a formula in column I: enter either formula in I1, then copy down to match your data. Sort ascending on column I and delete any
rows where I is greater than 1, and you're done.

If you want to keep the first instance but delete second, third, etc., use in I1:
=COUNTIF($D$1:D1,D1)

If you want to keep only those that occur once and only once, use in I1:
=COUNTIF(DO:D,D1)

HTH,
Bernie
Excel MVP


"gus" wrote in message ...
Another question
range(a1:h20000) has some data
I want to delete the entire row if a value in column d apears
again in other cell (row,column d)
In other words delete dublicate rows compare only the value in column d




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro to delete rows if cell blank in column puiuluipui Excel Discussion (Misc queries) 4 October 15th 09 05:22 PM
How can I insert and delete rows within a locked cell range column Gordon Cole Excel Worksheet Functions 0 October 1st 06 11:30 AM
i don't want to enter dublicate data in a specific column kalai Excel Discussion (Misc queries) 1 September 29th 06 06:58 PM
Delete all rows where Column A contains Text D Hafer - TFE Excel Worksheet Functions 3 July 1st 05 06:03 PM
How do I delete dublicate cells? Retroactive78 Excel Discussion (Misc queries) 1 April 20th 05 09:26 PM


All times are GMT +1. The time now is 09:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"