Get the last non-empty cell in a column in Excel and Google Sheets

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.