Copy last entry of column to bottom of column

J

jimmy_v_12

I am using a simple formula to keep track of some stocks, i.e. D2=Sum(B2*C2).
This formula is repeated in rows 2 thru 31. In cell D34 I want to display
the last previous entry in column D.

Thank you for your assistance.
 
T

T. Valko

Not sure I underatand what "last previous entry" means.

See if this does what you want:

=IF(COUNT(D2:D31),LOOKUP(1E100,D2:D31),"")
 
M

Mike H

jimmy,

I'm not sure I understand but try this in D34

=LOOKUP(2,1/(D2:D31>0),D2:D31)

Mike
 

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