slpscientist
New Member
- Joined
- May 10, 2011
- Messages
- 2
I've seen a number of posts on finding duplicates, but this is a little more complex.
I have two spreadsheets.
In Spreadsheet #1, each row represents a research subject. The cells in column A each have a subject number and there are no duplicates. The cells in the other columns each contain demographic information for that subject.
In Spreadsheet #2, each row represents data for a subject at a given testing time. So, there may be three rows for some subjects (e.g. subjects who were tested at 12, 24, and 36 months) and there may only be one row for another subject (e.g. a subject who was only tested at 36 months). There also are more subjects in that spreadsheet than in Spreadsheet #1 (all subjects in spreadsheet #1 are in Spreadsheet #2, but not vice versa). So, in Spreadsheet #2, column A also has subject numbers, but many are duplicates. I'd like to select only those rows in Spreadsheet #2 that have a value in column A that is also in column A of Spreadsheet #1. So, that would select every row representing a testing session for a subject in Spreadsheet #1.
This would be the first step. What I actually need to do is take each individual row from Spreadsheet #1 and add it to the appropriate row(s) for spreadsheet #2. This could allow every testing session for the specified set of research subjects to contain their demographic data and their data from the specific testing session.
Is that clear as mud?
Thank you in advance -
I have two spreadsheets.
In Spreadsheet #1, each row represents a research subject. The cells in column A each have a subject number and there are no duplicates. The cells in the other columns each contain demographic information for that subject.
In Spreadsheet #2, each row represents data for a subject at a given testing time. So, there may be three rows for some subjects (e.g. subjects who were tested at 12, 24, and 36 months) and there may only be one row for another subject (e.g. a subject who was only tested at 36 months). There also are more subjects in that spreadsheet than in Spreadsheet #1 (all subjects in spreadsheet #1 are in Spreadsheet #2, but not vice versa). So, in Spreadsheet #2, column A also has subject numbers, but many are duplicates. I'd like to select only those rows in Spreadsheet #2 that have a value in column A that is also in column A of Spreadsheet #1. So, that would select every row representing a testing session for a subject in Spreadsheet #1.
This would be the first step. What I actually need to do is take each individual row from Spreadsheet #1 and add it to the appropriate row(s) for spreadsheet #2. This could allow every testing session for the specified set of research subjects to contain their demographic data and their data from the specific testing session.
Is that clear as mud?
Thank you in advance -