Hello,
I have a household roster that contains household number, household member name, and member ID. This roster served as a baseline roster, and was used to collect end line data. All NEW members that were not in the baseline but were in the end line (new additions to the household either through marriage or birth) are now in the roster, but do not have a member ID. Is there a way to automatically generate a member ID for these new members that is n+1 from the highest value of baseline household member IDs?
Example:
Is there a command that would replace the missing ID for Sarah with "3" and Omar with "2"? Sometimes I have 2 new members, so it would need to be n+1, then n+2.
Many thanks,
Jowel
I have a household roster that contains household number, household member name, and member ID. This roster served as a baseline roster, and was used to collect end line data. All NEW members that were not in the baseline but were in the end line (new additions to the household either through marriage or birth) are now in the roster, but do not have a member ID. Is there a way to automatically generate a member ID for these new members that is n+1 from the highest value of baseline household member IDs?
Example:
Household Number | Member Name | Member ID |
1 | Alex | 1 |
1 | Jane | 2 |
1 | Sarah | . |
2 | Ali | 1 |
2 | Omar | . |
Is there a command that would replace the missing ID for Sarah with "3" and Omar with "2"? Sometimes I have 2 new members, so it would need to be n+1, then n+2.
Many thanks,
Jowel
Comment