Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.