Reputation: 444
The parameters are:
#DIV/0!
), and will have data added to it over time.LOOKUP
in its vector form.The formula (with Column A as the column in question) is:
=LOOKUP(1,-1/A:A^2,A:A)
The thinking is
A:A^2
-1/<resulting number from 1.>
.LOOKUP
goes looking for the value 1, it will exploit the behaviour of LOOKUP
to return the last number in column for a value that it can't find that is greater than any of the numbers in the resulting array.I think it works in all circumstances, but can anyone see something that breaks it?
Thanks in advance.
Upvotes: 0
Views: 77
Reputation: 46331
It won't work if the last number is zero, that will generate a #DIV/0! error which LOOKUP will ignore
Why not
=LOOKUP(9.99999999999999E+307,A:A)
Upvotes: 3