Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula for cell reference in excel

Status
Not open for further replies.

VLG711

Technical User
May 30, 2001
95
US
I am trying to construct a formula that that will locate and return the last entered amount in a column. The example would be

=TEXT(K & COUNTA(K:K),K7)

COUNTA all cells with text = 28
Value to return should be in K28

Any help is appreciated.

VLG711
 
Try:

=OFFSET(K1,COUNTA(K:K)-1,0)



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
If you just want the last value in the column, regardless of whether or not you have any blanks in your data, then the following will both do it:-

=LOOKUP(9.99999999999999E+307,K:K)

=INDIRECT(&quot;K&quot;&SUMPRODUCT(MAX((ROW(K1:K1000))*(K1:K1000<>&quot;&quot;))))

If you actually want the address, then the following should suffice:-

=&quot;K&quot;&SUMPRODUCT(MAX((ROW(K1:K1000))*(K1:K1000<>&quot;&quot;)))

Regards
Ken...................

----------------------------------------------------------------------------
Attitude - A little thing that makes a BIG difference
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top