View Single Post
  #6   Report Post  
Max
 
Posts: n/a
Default

With this test data in A1:A10 (with some blank cells in-between)

12

14

16
17

99

20

your alternative returns in B1:B10 :

17
16
0
14
0
12
#REF!
#REF!
#REF!
#REF!

The presence of blank cells in-between the data seems to throw the results
off.
It works ok provided there's no blank cells in between the data
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"olasa" wrote in
message ...

Here's an alternative:

=OFFSET($A$1,COUNTA(A:A)-ROWS($A$1:A1),0)

If your data is in Column A, put the formula in Column B, and copy
down.


Ola Sandström


--
olasa
------------------------------------------------------------------------
olasa's Profile:

http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=385761