I'm new to google apps scripting, and when I search for some things I get different answers than I'm looking for (for example if I google: app script search sheet, I get instructions for adding a search box to a spreadsheet).
I'm trying to make a script that will copy grades from an automatically generated spreadsheet that contains student quiz grades (generated by a google form quiz), to a master grading sheet (these are 2 different documents). I'm a bit confused because it seems that most of the examples I see about copying information don't copy between two different doc's, but rather from two different sheets (tabs) within one doc. Each student has a login name, for example john smith might be jsmith01. Each row in a spreadsheet corresponds to 1 student. There are a bunch of columns, but I'm trying to work with the "login" column and the "quiz" column. The login column holds the students login (ex jsmith01) and the quiz column contains the quiz grade. Here's some pseudocode for what I'm trying to do:
quizGrades = spreadsheet with results automatically created by quiz form
masterGrades = spreadsheet that I need to copy quiz grades into
for curStudent in rows on quizGrades sheet{
studentLogin = login name of curStudent in login column in quizGrades sheet
studentGrade = value (quiz grade) for curStudent in quiz column in quizGrades sheet
currStudentRow = row where login col. value in masterGrades sheet matches studentLogin
copy studentGrade into grade col. in currentStudentRow in masterGrades sheet
}