I have a sheet with data in cols A
through H
.
I need to determine the last row in column A
that contains data (it\'s all conti
Here's an alternative way of solving this. It uses a while
loop but takes into consideration empty gaps between rows.
function getLastRow (column) {
var iLastRow = ss.getActiveSheet().getMaxRows();
var aValues = ss.getActiveSheet().getRange(column + ":" + column).getValues();
var row = "";
while(row == ""){
row = aValues[iLastRow-1];
iLastRow--;
}
return iLastRow;
}