function for last non-blank entry in column?

M

mp

Is there a function that would return the value in the last non-blank cell
in a colunm?
example
"a1" = 10,
"a2" = 25,
"a3" = 3,

formula in "a10" would produce 3

then if later "a4" = 1, "a10" would automatically = 1
(in other words it's not Max, nor Min, nor Sum, nor Average etc)

is that clear?
thanks
mark
 
J

joeu2004

Is there a function that would return the value in the last non-blank cell
in a colunm? example
"a1" = 10,
"a2" = 25,
"a3" = 3,

=LOOKUP(1E100,A1:A3)

Although LOOKUP "requires" that the lookup table be in ascending
order, this use of LOOKUP works by coincidence because 1E100 is
presumably larger than any numeric value in the lookup table.

Note: If 1E100 is not larger enough, you could use 9E307, which is
closer to the maximum number that Excel permits to be entered. The
largerst computable number is (2^1023-2^970)*2.
 
M

mp

Is there a function that would return the value in the last non-blank cell
in a colunm? example
"a1" = 10,
"a2" = 25,
"a3" = 3,

=LOOKUP(1E100,A1:A3)

Although LOOKUP "requires" that the lookup table be in ascending
order, this use of LOOKUP works by coincidence because 1E100 is
presumably larger than any numeric value in the lookup table.

Note: If 1E100 is not larger enough, you could use 9E307, which is
closer to the maximum number that Excel permits to be entered. The
largerst computable number is (2^1023-2^970)*2.

very clever
thanks
mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top