Get last row of specific column function - best solution
With "lastRow" one can get the last row in a sheet. Sometimes you need the last row of a specific column. Google Apps script das not provide this function. There are around 5 questions and solutions already here on the site, but all have some specific code wrapped around it. I took the solution what i think is the fastest in most cases - you start looking at the end of the sheet and look backwards in the column you specified - and made a clean function out of it. So this is a contribution for beginners to copy paste this - the argument "RowNumber" is the column you want to look at as a number: