+ Reply to Thread
Results 1 to 5 of 5

Thread: Data consolidation between two worksheets

  1. #1
    Registered User
    Join Date
    02-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    50

    Question Data consolidation between two worksheets

    I’m attempting to merge two sets of data together. The full sets contain tens of thousands of rows of data. I thought there might be a way using a common field to merge the data? I’ve been googling but not finding anything that quite fits what I’d like to do. I’ve attached a sample of what I’m working with:

    In sheet 1 you should see the common field highlighted (column M) the same on sheet 2 (Column A). What I’d like to do is whenever there is a match between those two numbers is bring the data in column E (highlighted in red on Sheet 2) into Sheet 1.

    The data in Sheet 2 will be enormous and have many, many numbers in Column A that won’t match anything in Sheet 1. Sheet 1 basically has most of the data I need apart from the all important “occup” data in Column E in Sheet 2.

    Thanks in advance for any assistance you might provide,
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-25-2010
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Data consolidation between two worksheets

    Hi,

    You could use Sumif provided the "Occup" is always going to be a number. Trying putting this formula in cell Q2 of Sheet1:

    =SUMIF(Sheet2!$A:$A,Sheet1!$M:$M,Sheet2!$E:$E)
    This formula assumes the "inci_no" will always be unique.
    A day with nothing new achieved or learned, albeit however small, is a day lost forever…

    Constant Never Ending Improvement

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7/winXP
    Posts
    2,180

    Re: Data consolidation between two worksheets

    If both sheets are sorted by inci_no, you should be able to use VLOOKUP.
    ---
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    02-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Data consolidation between two worksheets

    Thank you both, it seems to be running now and pulling in the data.

  5. #5
    Registered User
    Join Date
    02-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Data consolidation between two worksheets

    Quote Originally Posted by protonLeah View Post
    If both sheets are sorted by inci_no, you should be able to use VLOOKUP.
    Could I use VLOOKUP to move text in the same way that I've been using SUMIF to move numbers? I've another table, same setup only I need to move text when I get a match.

    Thanks,

+ 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.2.0