1

I have been playing with scripts to try and figure out this tedious task as there are 600ish rows in my sheet, times 4 sheets.

So far I have come up with this

function myFunction() {
  var ss =SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  ss.getRange("A2").setFormula("=iferror(VLOOKUP(A1,Responses!$M:$N,2,false),)");

  var lr = ss.getLastRow()
  var lc = ss.getLastColumn()
  var fillDownRange = ss.getRange(2, 1, lr, lc)
  ss.getRange("A2").copyTo(fillDownRange)

}

However, this copies it everywhere... I am looking to find a way to copy it every even row (2,4,6,8...) Any suggestion would be appreciated.

This better might give you a better visual. I am trying to put the formula in those blank spaces.

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.