Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formuala to calculate from last cell in range containing value


Hi

Can you please advise the easiest method to achieve the following.

I need a formula to perform a calculation using the last cell in a
range that contains a value. The range would be say A1:A365 and each
day the user will add to the bottom of the range (for each day of the
year) and I need to calculate from this on a rolling basis (basically a
yearly average).

I hope this is easy to understand.

Thanks

VC


--
uplink600
------------------------------------------------------------------------
uplink600's Profile: http://www.excelforum.com/member.php...fo&userid=9408
View this thread: http://www.excelforum.com/showthread...hreadid=520998

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Formuala to calculate from last cell in range containing value

The last value can be found using

=INDEX(A1:A365,MATCH(9.99999999999999E+307,A1:A365 ))

if you just want the row, just use

=MATCH(9.99999999999999E+307,A1:A365)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"uplink600" wrote
in message ...

Hi

Can you please advise the easiest method to achieve the following.

I need a formula to perform a calculation using the last cell in a
range that contains a value. The range would be say A1:A365 and each
day the user will add to the bottom of the range (for each day of the
year) and I need to calculate from this on a rolling basis (basically a
yearly average).

I hope this is easy to understand.

Thanks

VC


--
uplink600
------------------------------------------------------------------------
uplink600's Profile:

http://www.excelforum.com/member.php...fo&userid=9408
View this thread: http://www.excelforum.com/showthread...hreadid=520998



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Formuala to calculate from last cell in range containing value

uplink600, this return the last numeric valve in A1:A365,
=LOOKUP(9.99999999999999E+307,A1:A365)
you may also want to have a look here for more information on finding the
last cell http://www.xldynamic.com/source/xld.LastValue.html

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"uplink600" wrote
in message ...

Hi

Can you please advise the easiest method to achieve the following.

I need a formula to perform a calculation using the last cell in a
range that contains a value. The range would be say A1:A365 and each
day the user will add to the bottom of the range (for each day of the
year) and I need to calculate from this on a rolling basis (basically a
yearly average).

I hope this is easy to understand.

Thanks

VC


--
uplink600
------------------------------------------------------------------------
uplink600's Profile:

http://www.excelforum.com/member.php...fo&userid=9408
View this thread: http://www.excelforum.com/showthread...hreadid=520998



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
Formuala Question Rob Excel Discussion (Misc queries) 7 March 10th 09 06:49 PM
Calculate Range SRV....Frenzy Excel Worksheet Functions 1 April 4th 07 12:10 PM
How do I calculate within a range? Jdd561 Excel Worksheet Functions 5 November 5th 06 06:09 PM
How to limit 'calculate' (F9) to specific cell, range, sheets, workbooks? pm[_2_] Excel Programming 2 January 14th 06 08:52 PM
IF Formuala PW Excel Worksheet Functions 4 September 21st 05 04:40 PM


All times are GMT +1. The time now is 03:31 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"