Nuacht

Formatting cells that aren't used can grow your workbook's file size. See how to reset the last cell on an Excel File to remove formatting.
Returning the last value based on a condition seems like a difficult problem to solve unless you try one of these easy-to-implement solutions.
When you need to see the last value in an Excel Table or data range, these formulas will get the job done. This walk-through details the necessary formulas and some VBA code that performs the same ...
If you don't have an existing file, use the blank worksheet in Excel. Type a zero in the first row of your column and drag your mouse down to the last row of the column to autofill it with zeros.