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,
Hi,
You could use Sumif provided the "Occup" is always going to be a number. Trying putting this formula in cell Q2 of Sheet1:
This formula assumes the "inci_no" will always be unique.=SUMIF(Sheet2!$A:$A,Sheet1!$M:$M,Sheet2!$E:$E)
A day with nothing new achieved or learned, albeit however small, is a day lost forever…
Constant Never Ending Improvement
If both sheets are sorted by inci_no, you should be able to use VLOOKUP.
---
Ben Van Johnson
Thank you both, it seems to be running now and pulling in the data.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks