jeffcoleky
Active Member
- Joined
- May 24, 2011
- Messages
- 274
Objective:
Using the data in a single row, create a new row for each member of the family (spouse and up to 16 children). Use their name, phone, and email address from the existing row (if value exists). Also Duplicate the address (modified), group number, and head of household's name in each row.
I have created a basic set of data, and the desired outcome in a spreadsheet. I also have a larger set of live data you can use to try it out. The spreadsheet with all the data can be found here. ROW IS TOO LONG TO POST HERE: https://docs.google.com/spreadsheets/d/15vOY_D7OW_MKSuq28sKEZv24eXg1bNoQboMol5QD-LY/edit?usp=sharing
Here are the steps that take place (I'm not a coder and don't know proper terminology but think this is how it should work)
1 If head of house has a spouse (Column E), create blank row below current row for her info.
2 Also create an additional blank row for each child name if a name is found in columns F, H, K, N, Q, T, W, Z, AC, AF, AI, AL, AO, AR, AU, AX, BC. (child names are inserted in order if they exist so if F is blank, then you know H-BC are blank also)
3 Insert the Head of Household's name in Column A for each of the newly created rows
4 Insert the Group Number found in Column BD, into column I, for each of the newly created rows
5 insert the head of household's name (From Col B) into first row of column C for that family.
6 Insert Head of Household's email address (from Column D) into the first row of column E for that family.
7 Insert Head of Household's Phone Number (from Column C) into the first row of column F for that family.
8A If Spouse Name exists:
8B Insert the spouses's full name (from Column E) into the first row of Column B for that family.
8C Insert the spouses's full name (from Column E) into the Second row, Column C for that family.
8D Insert the spouse's email address (From Column G) into second row of Column E
8E Insert the spouse's Phone Number (from Column F) into the second row of Column F.
8F If Spouse Name does not exist, goto first child name.
9A If child name exists in F
9B Copy Name from F into next empty row in column C
9C Copy child's email address from J into column E
9D Copy Child's Phone Number from column I into Column F
9E Repeat the if child name exists rule for each child thereafter.
9F If no child name exists in F, goto next step
10 Extract the FIRST 5 numbers in the zip code and insert the value into column H for each member of the family
11 Extract the street name and city from the address and insert into column G for each member of the family. (State is always surrounded by two commas)
It is way too complcated for me... if anyone can tackle this it would be greatly appreciated, it's for a non-profit church group. Thanks!
Using the data in a single row, create a new row for each member of the family (spouse and up to 16 children). Use their name, phone, and email address from the existing row (if value exists). Also Duplicate the address (modified), group number, and head of household's name in each row.
I have created a basic set of data, and the desired outcome in a spreadsheet. I also have a larger set of live data you can use to try it out. The spreadsheet with all the data can be found here. ROW IS TOO LONG TO POST HERE: https://docs.google.com/spreadsheets/d/15vOY_D7OW_MKSuq28sKEZv24eXg1bNoQboMol5QD-LY/edit?usp=sharing
Here are the steps that take place (I'm not a coder and don't know proper terminology but think this is how it should work)
1 If head of house has a spouse (Column E), create blank row below current row for her info.
2 Also create an additional blank row for each child name if a name is found in columns F, H, K, N, Q, T, W, Z, AC, AF, AI, AL, AO, AR, AU, AX, BC. (child names are inserted in order if they exist so if F is blank, then you know H-BC are blank also)
3 Insert the Head of Household's name in Column A for each of the newly created rows
4 Insert the Group Number found in Column BD, into column I, for each of the newly created rows
5 insert the head of household's name (From Col B) into first row of column C for that family.
6 Insert Head of Household's email address (from Column D) into the first row of column E for that family.
7 Insert Head of Household's Phone Number (from Column C) into the first row of column F for that family.
8A If Spouse Name exists:
8B Insert the spouses's full name (from Column E) into the first row of Column B for that family.
8C Insert the spouses's full name (from Column E) into the Second row, Column C for that family.
8D Insert the spouse's email address (From Column G) into second row of Column E
8E Insert the spouse's Phone Number (from Column F) into the second row of Column F.
8F If Spouse Name does not exist, goto first child name.
9A If child name exists in F
9B Copy Name from F into next empty row in column C
9C Copy child's email address from J into column E
9D Copy Child's Phone Number from column I into Column F
9E Repeat the if child name exists rule for each child thereafter.
9F If no child name exists in F, goto next step
10 Extract the FIRST 5 numbers in the zip code and insert the value into column H for each member of the family
11 Extract the street name and city from the address and insert into column G for each member of the family. (State is always surrounded by two commas)
It is way too complcated for me... if anyone can tackle this it would be greatly appreciated, it's for a non-profit church group. Thanks!