Created
October 4, 2019 14:51
-
-
Save rhyskentish/6d4f1ac376e7f04a1e95884f5b0ab381 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getColByName(name){ | |
var headers = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Sheet1').getDataRange().getValues()[1]; | |
var colindex = headers.indexOf(name); | |
return colindex+1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment