LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
jch
 
Posts: n/a
Default

Thanks Alex. I'll give it a try.
jch

"Alex Delamain" wrote:


Here's a suggestion - try using =offset() in your formulae.
For example:
If your data has column headings in row 1 add a new row above it. Then
in cell A1 enter =counta($a:$a)-2 (the -2 is to account
for the cell itself and the heading)

This will give the number of rows of data and will update when rows are
added or deleted.

For your formulae you then use this number of rows in an offset
function
=offset(reference,rows,cols,height,width)
so if column B has monthly sales starting in B3 the last 12 months
total is:

=SUM(OFFSET(B2,$A$1,,-12))

No matter how many rows are added or removed this will always sum the
last 12 rows

hope it helps


--
Alex Delamain
------------------------------------------------------------------------
Alex Delamain's Profile: http://www.excelforum.com/member.php...o&userid=11273
View this thread: http://www.excelforum.com/showthread...hreadid=394062




 
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
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Can I set up the formula to update automatically? pugsly8422 Excel Worksheet Functions 1 March 23rd 05 04:43 PM
Pivot Table Auto Update Data Source? Ket Excel Worksheet Functions 1 February 18th 05 11:14 PM
how do I disable the formula bar? disabled Excel Discussion (Misc queries) 1 January 8th 05 02:06 PM


All times are GMT +1. The time now is 06:37 PM.

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"