Identify common individuals and exclude the rest from two sets of data

mikenikes

New Member
Joined
Aug 9, 2011
Messages
7
Hi!

I am currently investigating two periods in time: 1990 and 2000, and the change for 3000+ individuals in approx. 20 different variables.

In the 1990 dataset I have 3354 individuals that are identified with a code-nr that runs from 10000 to 34907.

The 2000 dataset includes some of these individuals, as well as a significant number of new survey respondents. In the same way, the 1990 dataset includes respondents that did not participate in the 2000 survey.


My problem is that I need a means of having excel identify only those observations where the respondent ID is observed in both time instances, and delete (the entire row/information for all variables) those that are not present in both data sets.

Any tips on how I can manage this?

Thanks,

Mikenikes
 
It's a rather crude process but if it's a one time thing then it's probably not worth spending any more time on it.

Glad it helped.

Gary
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hello Mike,

A vba program 23 lines long removes all lines of data that occur in one data line only.
The personal ID is assumed to be in column A.
You can specify the number of columns that you want to clear for the singular data.

HTH

Gabor
 
Upvote 0
Hello Mike,

A 23 line program in vba eliminates all but the common individuals (line of data with an ID that is unique for the line).
The user can specify the number of columns a line of data contains.
HTH

Gabor
 
Upvote 0

Forum statistics

Threads
1,216,024
Messages
6,128,333
Members
449,443
Latest member
Chrissy_M

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top