Home » excel » excel function to find last number in column

excel function to find last number in column

Posted by: admin March 9, 2020 Leave a comment


I record the value of my stocks each day in columns and it is a long spreadsheet. In the top cell of each column, I want to use a function that will display the last entry in the column automatically. I’ve tried the Index function and the Index function combined with the Counta function with no success. Any suggestions?

How to&Answers:

Try using LOOKUP, assuming at most 1000 rows of data (adjust as required) use this formula in A1 to get the last number in A2:A1000


You can have blanks or any other data in the range (even errors) and it will still return the last number


Try this for Column A, resp. Cell A1:


This example is for a maximum of 100 rows of data (2 – 101). You may replace 101 by any higher number according to the size of your sheet.

Please note that there may be no blank cells in the middle of the list.


The answer Jens Fischer provided worked excellently and also translated well to google sheets whereas other solutions have not. I made one small change; by using A$1 as the reference I didn’t need the -1 at the end of the formula.