PC Review


Reply
Thread Tools Rate Thread

How do I find the last number in a column?

 
 
dries
Guest
Posts: n/a
 
      1st Feb 2008
If somebody could help me with this I would be very happy, I can't figure it
out:
In a sheet I have a column of figures to which new figures are added regularly.
At the side of the column I'd like to have a cell containing the last number in
the column so I can see that in one go without having to scroll to the end of
the column.
I tried all sorts of stuff but cannot get it to work, all help would be highly
appreciated!
Thanks
Dries
 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      1st Feb 2008
If your numbers are in column A, then put this formula in B1 (or
somewhere not in the same column):

=LOOKUP(10^10,A:A)

Hope this helps.

Pete

On Feb 1, 11:23*am, dries <dr...@bessels.nospam.org> wrote:
> If somebody could help me with this I would be very happy, I can't figure it
> out:
> In a sheet I have a column of figures to which new figures are added regularly.
> At the side of the column I'd like to have a cell containing the last number in
> the column so I can see that in one go without having to scroll to the endof
> the column.
> I tried all sorts of stuff but cannot get it to work, all help would be highly
> appreciated!
> Thanks
> Dries


 
Reply With Quote
 
Matt Richardson
Guest
Posts: n/a
 
      1st Feb 2008
On Feb 1, 11:23 am, dries <dr...@bessels.nospam.org> wrote:
> If somebody could help me with this I would be very happy, I can't figure it
> out:
> In a sheet I have a column of figures to which new figures are added regularly.
> At the side of the column I'd like to have a cell containing the last number in
> the column so I can see that in one go without having to scroll to the end of
> the column.
> I tried all sorts of stuff but cannot get it to work, all help would be highly
> appreciated!
> Thanks
> Dries


Lets say your column of figures is A and you want the result showing
in B1. Type the following function into B1:-

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

and that should do the trick.

Hope this helps,
Matt Richardson
http://teachr.blogspot.com
 
Reply With Quote
 
Stan Brown
Guest
Posts: n/a
 
      2nd Feb 2008
01 Feb 2008 11:23:40 GMT from dries <(E-Mail Removed)>:
> In a sheet I have a column of figures to which new figures are
> added regularly. At the side of the column I'd like to have a cell
> containing the last number in the column so I can see that in one
> go without having to scroll to the end of the column.


http://www.contextures.on.ca/xlNames01.html#Dynamic
gives the technique for a dynamic name that refers to the whole
column. You can easily modify that to a dynamic name that contains
only the last filled element in the column.

> I tried all sorts of stuff but cannot get it to work, all help
> would be highly appreciated!


Just once when somebody says something like this, I wish they would
tell specifically what they've tried.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"If there's one thing I know, it's men. I ought to: it's
been my life work." -- Marie Dressler, in /Dinner at Eight/
 
Reply With Quote
 
Harlan Grove
Guest
Posts: n/a
 
      2nd Feb 2008
"Matt Richardson" <(E-Mail Removed)> wrote...
....
>Lets say your column of figures is A and you want the result showing
>in B1. Type the following function into B1:-
>
>=OFFSET(A1,COUNTA(A:A)-1,0)
>
>and that should do the trick.


This fails when there are blank cells above or nonnumeric cells below the
last number in column A. Also, OFFSET is volatile, so it recalculate more
often than necessary. Whenever your OFFSET formula would return the correct
result, so would

=INDEX(A:A,COUNTA(A:A))

but this INDEX formula calls only nonvolatile functions. However, the LOOKUP
formulas other respondents suggested is always better because it recalcs
faster and is more robust, ALWAYS returning the last number in the column no
matter what else is in the column.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
function - find first number in row > 0, return cell column number cate Microsoft Excel Programming 3 19th Apr 2011 09:44 PM
R: Re: function - find first number in row > 0, return cell column number r Microsoft Excel Programming 0 19th Apr 2011 09:44 PM
FInd common data in one column then add number in adjacent column JT Microsoft Excel Worksheet Functions 3 18th Dec 2009 10:20 PM
Find previous number and find next number in column DoubleZ Microsoft Excel Misc 4 4th Mar 2009 08:51 PM
How to find what number in Column A is not included in Column B? Zhi Sheng Microsoft Excel Misc 2 1st Sep 2008 02:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:36 PM.