+ Reply to Thread
Results 1 to 8 of 8

Combine two columns from different worksheets

  1. #1
    Registered User
    Join Date
    11-22-2008
    Location
    US
    Posts
    4

    Combine two columns from different worksheets

    I have two worksheets with a column of part numbers. I am trying to combine them in a new worksheet and remove duplicates. Any recommendations?
    Last edited by Irshsamoan; 11-23-2008 at 05:16 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board
    One way would be to copy paste one of the columns underneath the other
    Then select data - advanced filter
    Check "unique records only"
    Select if you want to filter in place or somewhere else ( if so sleect where)
    OK

  3. #3
    Registered User
    Join Date
    11-22-2008
    Location
    US
    Posts
    4
    Thanks ArthurBr,

    Is there any way to automate this? The two columns are from different worksheets that I import from a customer from two different sources.
    The lists can change as more parts are added.

    Maybe with a macro? (I've used the macro wizzard before, but definitely a
    beginner)

    Thanks

  4. #4
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465
    Hello Irshsamoan

    You can use CONCATENATE Formula for combine date

    =CONCATENATE(Sheet2!A1,Sheet3!A1)

    and for duplicates

    You can use countif formula

    =COUNTIF(A1:A15,A1)
    __________________
    Regards
    Rahul Nagar
    Founder of www.myshortcutkeys.com.


    If you get the answer of your questions then please click EDIT in your original post then click on GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  5. #5
    Registered User
    Join Date
    11-22-2008
    Location
    US
    Posts
    4
    Thanks Rahul,

    I've attached a sample what I'm trying to do.
    sheet 1 is from one source, sheet 2 is from another source.
    Sheet 3 is my combined parts list.

    It shows the lists from sheet 1 and sheet 2 combined with
    duplicates removed.

    I'm trying to figure out how to do this automatically through a
    macro or formula. Sheet 1 and Sheet 2 can contain different
    total number of lines.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi
    Ron De Bruin has a macro to merge cells in one sheet.
    Once this is done you can use the macro recorder to make the unique list

  7. #7
    Registered User
    Join Date
    11-22-2008
    Location
    US
    Posts
    4
    Thanks for help Arthurbr. It took me a while but I got it working.

  8. #8
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Glad to help. Can you now kindly mark your thread as Solved?

    Edit your original post
    Click Go Advanced
    Select [Solved] from the drop down where it says [No Prefix]
    Click Submit.

+ 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