LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Richard
It wasn't you causing confusion, it was me misreading.
In cell K1
=SUM(B1:OFFSET(B1,0,A1-1))
and copy down


--
Regards
Roger Govier
"Richard Buttrey" wrote in
message ...
On Thu, 28 Jul 2005 10:20:24 +0100, "Roger Govier"
wrote:

In cell C1
=SUM(INDIRECT("B1:B"&A1)
copy down through C2:C3



Roger,

Thanks for the quick repsonse. I apologise for sewing some confusion.

I should have said that I want the results in K1:K3 and that it is
Cells B1, C1, D1, E1 etc, which have the values 1, 2, 3, 4.. etc
respectively. i.e. I'm adding a variable range of either 3, 6 or 9
cells depending on the value in A

I also need an additional formula which adds the first, fourth or
seventh cells depending on the value in A.

i.e. given the earlier data.

In say L1 (where A1= 6) I need to add B1 and E1 = 5
In say L2 (where A1= 3) I just need B1 = 1
In say L3 (where A1= 9) I need to add B1 and E1 and H1= 12

Any ideas / suggestion gratefully received.

Regards

__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



 
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
Combining workbooks with some variable field names Bob Dobalina Excel Discussion (Misc queries) 8 May 17th 05 09:48 PM
Summing 2 columns TBoe Excel Worksheet Functions 3 April 28th 05 11:37 PM
Gantt Chart with variable width columns - is this possible? Dave Charts and Charting in Excel 0 December 13th 04 08:00 PM
summing part of cells in a range excelFan Excel Discussion (Misc queries) 2 December 5th 04 12:33 PM
variable range countif JK Excel Worksheet Functions 3 November 3rd 04 07:50 AM


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