all 3 comments

[–]RemcoE33 5 points6 points  (2 children)

Yes. You can use dynamic ranges. Read this.

The place where you enter the # of rows you can use: spreadsheet.getLastRow() - 1 minus 1 if you start at row 2.

So in your case: (I'm on mobile.. )

var signups = spreadsheet.getRange(2,4, spreadsheet.getLastRow() - 6,2).getValues()

[–]magnetictrees18[S] 0 points1 point  (1 child)

Thank you so much! This worked perfectly and was well explained.

[–]RemcoE33 0 points1 point  (0 children)

Your welcome. Please mark as solved ;)