Consulting

Results 1 to 4 of 4

Thread: Need Macro to Copy and Ignore Duplicate

  1. #1
    VBAX Newbie
    Joined
    Apr 2014
    Posts
    2
    Location

    Need Macro to Copy and Ignore Duplicate

    Sheet1
    A B C
    primary
    primary
    primary
    secondary
    secondary
    Sheet2 (This is in different sheet )
    A B C
    Primary Secondary

    Hi everyone.

    I need a macro that copy and ignore the duplicate of primary in sheet1 column A to another sheet (sheet2) column B. and also copy secondary (same ignore duplicate) in sheet1 column A to sheet2 column C.

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    It appears that we are transposing unique values? Might you attach an example workbook with some sample data and what the results should be on Sheet2?

    Mark

  3. #3
    An idea to the solution is to do the following.

    Copy the sheet
    Remove duplicates
    Copy data
    Then use the Transpose paste option on sheet two.
    Delete the sheet that you created at the beginning.

    Now all you need is a optimized piece of code to do the above, or something else similar.

  4. #4
    VBAX Newbie
    Joined
    Apr 2014
    Posts
    2
    Location
    Hi,
    I have attach a file showing with sheet1 as its masterlist. I already filtered the list ( color filled with blue 3 columns in sheet1). I want that if i filter columnJ(sheet1) by unchecking the blanks.It will show the labcode in column(F). I want to copy the labcode in column(F) to sheet2.( I already put some sample). Kindly check on it if you have time. Thanks


    ( the range filled with red color are next to be filtered unchecking the blanks again )
    Attached Files Attached Files

Posting Permissions

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