Excel formula: Last row number in range

Source: exceljet.net