1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel - macro to merge 2 excel files using a common column

Discussion in 'Business Applications' started by reema, Dec 11, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. reema

    reema Thread Starter

    Joined:
    Dec 11, 2010
    Messages:
    2
    Hi,
    I want to merge two excel files into a 3rd one.

    The data are in the files Book1, Book2 and the result in Book3.
    [​IMG]
    I know that i can use VLookup to do the above. But what i have pasted is just an example. The real excel files contains about 9 columns with at many repeating row!!!

    Any help will be much appreciated.
    Thx
     

    Attached Files:

  2. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,550
    First Name:
    Hans
    Hi welcome to the board. How are you going to treat the duble items, If you want to merge 2 files adn duplication occurs here must be one cell whihc is common to let's say Book1 and Book2.

    Do you have a common value? Index? Whatever you call it?
     
  3. reema

    reema Thread Starter

    Joined:
    Dec 11, 2010
    Messages:
    2
    Hi
    In the example that i have pasted, the common column is Surname. I have to merge according to this common column and keep the common values also.
    Plz help!!
     
  4. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,550
    First Name:
    Hans
    As far as I can see Black is a surname that appears twice and I aasume it's a different one seen the age
    So much for unique identifiers.
    Thre is no way you can tell which is the Mr. Black you want. Bad example, sorry no go in this way, don't you have another common value like Brithday Unless the're twins :))
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/967818

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice