#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel

Is there a function that can pull the last no. of a varying range. ii.e., I
add a number to the range daily, and I want to pull the last no. entered for
a formula.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Excel

Here is some VBA which will find the last value in a dynamic range:
http://www.ozgrid.com/VBA/ExcelRanges.htm

Dave
--
Brevity is the soul of wit.


"waltwlms" wrote:

Is there a function that can pull the last no. of a varying range. ii.e., I
add a number to the range daily, and I want to pull the last no. entered for
a formula.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Excel

Actually if you don't want to use VBA here's a formula:
=OFFSET(B2,MAX(IF(NOT(ISBLANK(B2:B25)),ROW(B2:B25) ,0))-ROW(B2),0)

This is an array formula and needs to be entered with CTRL+SHIFT+ENTER in
order to calculate. Assumes the range in question is in B2:B25.

If the range in question grows and contracts in size dynamically you may
want to use dynamic named ranges in conjunction with the above. See here for
more info: http://www.ozgrid.com/Excel/DynamicRanges.htm

Dave
--
Brevity is the soul of wit.


"Dave F" wrote:

Here is some VBA which will find the last value in a dynamic range:
http://www.ozgrid.com/VBA/ExcelRanges.htm

Dave
--
Brevity is the soul of wit.


"waltwlms" wrote:

Is there a function that can pull the last no. of a varying range. ii.e., I
add a number to the range daily, and I want to pull the last no. entered for
a formula.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Excel

Try...

=LOOKUP(9.99999999999999E+307,A2:A100)

or

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

Hope this helps!

In article ,
waltwlms wrote:

Is there a function that can pull the last no. of a varying range. ii.e., I
add a number to the range daily, and I want to pull the last no. entered for
a formula.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Excel

=LOOKUP(2,1/(A1:A65535<""),A1:A65535)


"waltwlms" wrote:

Is there a function that can pull the last no. of a varying range. ii.e., I
add a number to the range daily, and I want to pull the last no. entered for
a formula.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Excel docs not saving as excel docs Beth Excel Discussion (Misc queries) 6 September 12th 06 02:39 AM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Need suggestions for some uses of Ms Excel Bible John Excel Discussion (Misc queries) 1 February 27th 06 05:30 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM


All times are GMT +1. The time now is 05:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"