+ Reply to Thread
Results 1 to 5 of 5

Deleting Duplications

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Deleting Duplications

    Excellers,

    How could I delete rows from sheets("LISTS") with IDs that are not listed in the sheets("Report")?

    Attached the sample workbook.

    SampleV1.xlsx

    Help would be appreciated!

    Thanks.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Deleting Duplications

    Please find the attached sheet to see if this is what you want.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Deleting Duplications

    Excellent work, sktneer!

    I need some explaining for this code:

    rng2, Cells(i, 2)

    What does 2 represent?

    Thanks!

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Deleting Duplications

    rng2 is a range as you can see the following line in the code

    Set rng2 = ws2.Range("A7:A" & lr2)

    So rng2 is a range from A7 to last non empty cell in the column A in report sheet.

    And cells(i,2) is is equivalent to cell Bi in the List sheet. When the code runs first time i=1360 so cells(i,2) would be B1360.

  5. #5
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Deleting Duplications

    Ahh interesting! Thank you very much for a brief lesson.

    There still are kind people lingering on the face of Earth these days.

    Marking as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-26-2010, 11:14 AM
  2. Filter Duplications
    By seanyeap in forum Excel General
    Replies: 3
    Last Post: 04-22-2010, 05:31 AM
  3. eliminate duplications
    By shortman_alan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2008, 11:27 AM
  4. [SOLVED] Deleting Duplications
    By Ray_V in forum Excel General
    Replies: 3
    Last Post: 08-10-2006, 04:50 PM
  5. remove duplications
    By Vass in forum Excel General
    Replies: 1
    Last Post: 07-28-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1