Summing a range that changes

G

Guest

Hi,

I have a formula that sums the range

Cell B1 = Sum(A1:$A$100)
and this is copied down to cell B100,
so Cell B33 = Sum(A33:$A$100)

But I want the sum range to change, based on the value in cell C1.

If C1 = 100, then the sum range will = Sum(A1:$A$100),
Cell B33 = Sum(A33:$A$100)

If Cell C1 = 300, then the sum range will = Sum(A1:$A$300)
Cell B33 = Sum(A33:$A$300)

I tried using indirect but I could not figure it out.

Thanks for your help
 
G

Guest

Take the $ out of the equations. $ = absolutes, which tells excell that
those particular values do not change.
 
G

Guest

NUMBnut said:
Take the $ out of the equations. $ = absolutes, which tells excell that
those particular values do not change.


That does not work because the last reference A300 must stay constant, and
A1 is the cell that changes
 
G

Guest

In using absolutes the entire equation will not change. You can use the fill
feature to fill down, but you will have to go back and change the values.
Sorry, don't know a short cut for that.
 
G

Guest

This appears to do what you are asking for:

=SUM(INDIRECT("a" & ROW(A1) & ":a" & $C$1))
 
B

Bob Phillips

Try this

=SUM(INDIRECT("A"&ROW()&":A"&C1))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
B

Bob Phillips

Sorry that should be

=SUM(INDIRECT("A"&ROW()&":A"&$C$1))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top