+ Reply to Thread
Results 1 to 4 of 4

How to merge files?

  1. #1
    Registered User
    Join Date
    04-04-2006
    Location
    Lexington, Kentucky, USA
    MS-Off Ver
    2007
    Posts
    6

    How to merge files?

    Often I need to add data from one spreadsheet to the appropriate places on another spreadsheet. For example:

    Sheet A has 10,000 records with these fields: id#, name, address, place of employment.

    Sheet B has 5,000 records these fields: id#, GPA, college major, type of degree.

    Some of the records in B contain information for the same id#'s as sheet A. I want to add this information together so that a Sheet C will have these fields: id#, name, address, place of employment, GPA, college major, type of degree.

    What's the easiest way for Excel to do this?
    Last edited by Larryq22; 02-07-2009 at 01:17 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to merge files?

    copy sheet a to sheet c
    then use a vlookup in columns e ,f,g of sheet c
    assuming row one is the headers id/name ect then in e2
    =VLOOKUP($A2,'Sheet b'!$A:$D,COLUMN()-3,FALSE)
    drag across to col g
    then down to end of data

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: How to merge files?

    Hi,
    You can use the VLOOKUP function to add gpa, college and degree based on the id# something like =vlookup(id#,sheet2!your_range,2) for GPA, 3 for major and 4 for degree.

    Don't hesitate to add a small sample if necessary

    For information on how to use the forum please follow one of the links to our how to sections or frequently asked questions!
    Navigation bar including the How to...? dropdown
    How to videos
    Frequently asked questions

  4. #4
    Registered User
    Join Date
    04-04-2006
    Location
    Lexington, Kentucky, USA
    MS-Off Ver
    2007
    Posts
    6

    Re: How to merge files?

    Many thanks to both of you!

    Larry

+ 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