Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel - find last value in a column which is not an error or blank

I need to find in a column of an excel spreadsheet the last non-error, non-blank value. The column can have several instaces of #N/A which are alternating with actual values. There are several solutions for finding the last non-empty cell, but the solutions do not consider errors, in particular if the last non-empty cell has got an error.

The solution would be 3 in this case.

enter image description here

like image 801
fette_hehne Avatar asked Jan 26 '26 20:01

fette_hehne


1 Answers

Try this formula

=LOOKUP(2,1/(A1:A100<>""),A1:A100)

extend range as required. In Excel 2007 and later you can use the whole column

like image 65
barry houdini Avatar answered Jan 28 '26 12:01

barry houdini