I have one spreadsheet which houses the database of my members. In same spreadsheet I have another sheet where I will track attendance for the events for each of these members.
First issue:
Now, I would like to use the names from first sheet in my second sheet, so as to avoid having to update the names at each of this place. I didn't find any function to accomplish this, so I decided to use the more expensive importrange
, by giving the key of same spreadsheet.
=> Is there any alternative?
Second issue I face is:
Consider I am importing columns A(FirstName) and B(LastName) from Sheet1 to Columns A and B in Sheet 2. Along with this, in Sheet 2, there are dates of events in subsequent columns C, D, E, etc.
It looks something like this:
FirstName | LastName | 1stMay15 | 30thApr15 | 29thApr15
Jack | Smith | Present | Absent | Present
Mark | Smith | Absent | Absent | Present
And so on...
Now, when I add a new entry in Sheet1 for a new member in middle somewhere (because it’s name sorted), thanks to the importRange
function, new cells are added right in its place in Sheet2 (respective to Sheet1), but a new row doesn't get added in Sheet2—as a result, if I add new member Kyle Smith between Jack and Mark, now Kyle corresponds to the attendance of Mark.
i.e.
FirstName | LastName | 1stMay15 | 30thApr15 | 29thApr15
Jack | Smith | Present | Absent | Present
Kyle | Smith | Absent | Absent | Present
Mark | Smith | | |
How can I make it add a new row instead so everyone's attendance stays intact?
Here's the demo spreadsheet: https://docs.google.com/spreadsheets/d/15Hr-upZvTXm0c2kAau9G2AQ-7mdqkVkZhItBWqGQYEQ/edit?usp=sharing
Now, in "Database" Sheet if you add a new name "Kyle Smith" somewhere amidst other names, THEN in the Attendance sheet, name is added at right place, but rest of data won't move down.
I am open to all kinds of solutions, even using Google Scripts.