Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default indirect cell reference

I am trying to do a sum on certain sections of a list that is dynamic. So if
you assume you have a list of 100 cells in a column, and you determine that
you want to sum the values in three sections of this list. The start and
end rows of this list are in cells a1:b3. How would i use the sum function
to sum the values in these three sections?

Thanks in advance for your help!

Tom
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default indirect cell reference

TomCser wrote:
I am trying to do a sum on certain sections of a list that is dynamic. So if
you assume you have a list of 100 cells in a column, and you determine that
you want to sum the values in three sections of this list. The start and
end rows of this list are in cells a1:b3. How would i use the sum function
to sum the values in these three sections?

Thanks in advance for your help!


Hi Tom,

Let's say your value cells are in C1:C100. I'm assuming columns A and B
are "start" and "stop" row numbers to sum. Then this works:

=SUM(OFFSET(C1,A1-1,0,B1-A1+1))+SUM(OFFSET(C1,A2-1,0,B2-A2+1))+SUM(OFFSET(C1,A3-1,0,B3-A3+1))

There are probably more elegant ways though.
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
Indirect sheet reference in a cell velvetlady Excel Worksheet Functions 1 April 1st 08 05:13 PM
Dynamic cell reference using INDIRECT.. [email protected][_2_] Excel Worksheet Functions 4 July 27th 07 10:11 AM
Cell reference OR INDIRECT function Excel ESG Excel Worksheet Functions 2 June 11th 07 11:26 AM
Can INDIRECT function reference a cell that contains a formula Steve E Excel Worksheet Functions 13 August 23rd 06 10:49 PM
Cell reference within a indirect.. Hurtige Excel Worksheet Functions 2 August 14th 06 11:54 AM


All times are GMT +1. The time now is 09:00 AM.

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

About Us

"It's about Microsoft Excel"