+ Reply to Thread
Results 1 to 4 of 4

Copying Unique Records to a New Sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2006
    Posts
    41

    Copying Unique Records to a New Sheet

    Hello everybody

    I have a worksheet with a column "ItemCode" and a few more associated columns. The worksheet contains multiple records for each ItemCode.

    My concern is to copy those records to another worksheet with only the first occurance of each ItemCode (eliminating records with duplicate ItemCodes).

    Any help apprciated.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Advanced Filter has both CopyToDifferentLocation and UniqueOnly options.

    The ListRange, CriteriaRange and CopyTo ranges can all be on different sheets, but (from the keyboard) the CopyTo sheet should be active when the AdvancedFilter button is pushed.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    11-08-2006
    Posts
    41
    Thanks for the prompt. But, I want to do it Programmatically.
    A programatic solution will be appreciated.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by Rabi
    Thanks for the prompt. But, I want to do it Programmatically.
    A programatic solution will be appreciated.
    Start by doing what Mike suggests whilst recording a macro. The resulting code can then be tidied up
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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