Not sure if this is the right way to title this question, but I'm hoping someone can help me. I am generating form responses from parents that want to update their contact information. The form gives the parents the option to enter the name and information of their students, up to four total students. The form would then gather the same 7 pieces of information for each student: Student First Name, Student Last Name, Student E-Mail, Student ID, Student Cell Phone, School Attended, and Grade Level. The parents would then have up to 20 pieces of information to input into the form.
After completing the form, the responses would go into a Google Sheet and I want to parse out the responses to separate sheets based on School Attended. This is the query I have written, but it only works if all of the students that are entered into the form have the same School Attended.
={query('Form Responses 1'!A2:AZ,"Select A,B,C,D,E,F,G,H,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ WHERE G='School Attended' Order by C,B",0); query('Form Responses 1'!A2:AZ,"select A,J,K,L,M,N,O,P,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ WHERE O='School Attended' Order by K,J",0); query('Form Responses 1'!A2:AZ,"select A,R,S,T,U,V,W,X,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ WHERE W='School Attended' Order by S,R",0); query('Form Responses 1'!A2:AZ,"select A,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ WHERE AE='School Attended' order by AA,Z",0)}
In the above code:
- A is the timestamp
- B:H, J:P, R:X, and Z:AF are the seven pieces of student information
- AG:AZ are the 20 pieces of parent/contact information
What I would want is for each school sheet to display the timestamp, the seven pieces of student information, and the 20 pieces of parent/contact information, regardless of the number of students entered on each form or if the students attend different schools. Any help would be amazing.
Thank you!