+ Reply to Thread
Results 1 to 4 of 4

Merge 2 excel files, or move data from xls 1 to xls 2 to the right rows?

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    2

    Merge 2 excel files, or move data from xls 1 to xls 2 to the right rows?

    Hi.
    We have 2 excel files every month with many colums. On column is on both xls files, social security number.

    I would love if there is a function in excel or maybe you could script this. Is to search and match rows pedning on social security number and add the missing data to one of the xls docs.


    So like this
    XLS1
    * Social security number column
    * Data 1 column

    XLS2
    * Social security number column
    * Data 2 column

    XLS3 or merged fixed xls
    * Social security number column
    * Data 1 column
    * Data 2 column

    Hopefully you understand my request! Thanks.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Merge 2 excel files, or move data from xls 1 to xls 2 to the right rows?

    Do you have samples that you can upload of books 1 and 2? If we use dummy files that we create for you, you may not be able to replicate the same in your files, so its better you attach a sample of your files.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Merge 2 excel files, or move data from xls 1 to xls 2 to the right rows?

    XLS1
    * Social security number column (column A)
    * Data 1 column (column B)
    vlookup at column C
    =VLOOKUP( value, table_array, index_number, false)
    eg: VLOOKUP( value at xls1 "A2", table_array at xls2 "A:A", index_number "2", FALSE )

    hope this help

  4. #4
    Registered User
    Join Date
    04-09-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Merge 2 excel files, or move data from xls 1 to xls 2 to the right rows?

    Vlookup did the trick! Managed to read how it works.

    Thanks!! :D

+ 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