Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2006

Tip: Looking for answers? Try searching our database.

Last entry in a column/row function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Victor Delta - 30 Oct 2006 20:46 GMT
I have several spreadsheets which I use for data gathering (usually in
columns, but could be in rows) and where I need to do calculations
based on the last (ie most recent, at the bottom) entry in the column.

Although Excel has functions designed to help me find the largest,
smallest, average etc etc of these numbers, I have yet to find one
which returns the last entry. Of course, it is not hard to add an extra
(subsequently hidden) column which does the calculations (using the if
and isblank functions) but I'm sure there must be a better way to do it
- with a formula in a single cell.

Any suggestions please?

Thanks

V
Ron Coderre - 30 Oct 2006 21:05 GMT
Depending on what you consider to be the "last" item, see if one of these
does what you want:

The value of the last non-blank cell in ROW range
=LOOKUP(2,1/(A1:M1<>""),A1:M1)

The value of the last non-blank cell in a COLUMN range
=LOOKUP(2,1/(A1:A100<>""),A1:A100)

The VALUE of the last numeric value in Col_A:
=LOOKUP(10^99,A:A)

The VALUE of the last numeric value in Row_1:
=LOOKUP(10^99,1:1)

The VALUE of the last text cell in Col_A
=LOOKUP(REPT("z",255),A:A)

The VALUE of the last text cell in Row_1
=LOOKUP(REPT("z",255),1:1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP

> I have several spreadsheets which I use for data gathering (usually in
> columns, but could be in rows) and where I need to do calculations
[quoted text clipped - 12 lines]
>
> V
Victor Delta - 30 Oct 2006 21:32 GMT
Ron

That's brilliant. The third and fourth formulae are just what I needed.

Many thanks.

V

PS Still find it surprising that Excel does not have a specific
function for this (eg LAST)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.