Hello everyone,
I have a question that I think this is the correct place for. I have two sets of data on two separate sheets. The data is connected by a unique study ID. There is at least one of each study ID in each set of data, and there are instances where there are multiple of each study ID in each data sets (e.x. 10 1003s on sheet 1, 1 1003 on sheet2). There should always be at least as many pieces of data on sheet 1 as there are on sheet 2 (e.x. there will never be 2 1005s on sheet 1 and 10 1005s on sheet 2). I want to combine the data from each sheet into a single row (the data with 1001 from sheet 1 and sheet 2 together on a single line on sheet 3). In instances where there are unequal number of IDs on sheet 1 and 2, I want to consolidate data based on having the closest date and time on ADMIT_DTTM on sheet 1 and teen_demographics_timestamp on sheet 2.
Does this make sense? If it makes sense, is it even possible?
If anyone has insight I would greatly appreciate it, as it will save me about many hours of manually consolidating
Example Workbook.xlsx
Example Workbook 2.xlsx
Bookmarks