PC Review


Reply
Thread Tools Rate Thread

Automatic update to SUM formula cell references.

 
 
David S
Guest
Posts: n/a
 
      20th Apr 2010
I have a spreadsheet that has many SUM formulas that change on a monthly
basis. Instead of manually changing each formula every month I want to
create a reference to pull the row number from one cell so that updates each
SUM formula. For example, change SUM($C$5:$C$8) to SUM($C$5:$C$9), where
changing the 8 to a 9 in a cell outside the report range will update all the
formulas. The SUM formulas are different for the columns, but use the same
row reference. I used to be able to do this in Lotus, but have never figured
out how to do this in Excel. We have Office 2007 software. Thank you for
your help!
--
David S
 
Reply With Quote
 
 
 
 
RonaldoOneNil
Guest
Posts: n/a
 
      20th Apr 2010
Assuming the 8 or 9 is in cell A1 your formulae can be something like this

=SUM($C$5:INDIRECT("$C$" & A1))

"David S" wrote:

> I have a spreadsheet that has many SUM formulas that change on a monthly
> basis. Instead of manually changing each formula every month I want to
> create a reference to pull the row number from one cell so that updates each
> SUM formula. For example, change SUM($C$5:$C$8) to SUM($C$5:$C$9), where
> changing the 8 to a 9 in a cell outside the report range will update all the
> formulas. The SUM formulas are different for the columns, but use the same
> row reference. I used to be able to do this in Lotus, but have never figured
> out how to do this in Excel. We have Office 2007 software. Thank you for
> your help!
> --
> David S

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      20th Apr 2010
Better yet set up a defined name for the range and use that
while on the desired sheet>insert>name>define>in the name box type in colC
in the formula box type in
=offset($c$5,0,0,counta($c$c),1)
OR if numbers
=offset($c$5,0,0,match(9999999,$c$c),1)
or another formula to determine the last cell in col C. Look in the help
index for OFFSET
then use
=sum(colc)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"David S" <(E-Mail Removed)> wrote in message
news:0E666D00-07A5-4239-BE1E-(E-Mail Removed)...
>I have a spreadsheet that has many SUM formulas that change on a monthly
> basis. Instead of manually changing each formula every month I want to
> create a reference to pull the row number from one cell so that updates
> each
> SUM formula. For example, change SUM($C$5:$C$8) to SUM($C$5:$C$9), where
> changing the 8 to a 9 in a cell outside the report range will update all
> the
> formulas. The SUM formulas are different for the columns, but use the
> same
> row reference. I used to be able to do this in Lotus, but have never
> figured
> out how to do this in Excel. We have Office 2007 software. Thank you
> for
> your help!
> --
> David S


 
Reply With Quote
 
David S
Guest
Posts: n/a
 
      20th Apr 2010
Thank you for your help. Sooo simple! But nothing I tried before would work.

--
David S


"RonaldoOneNil" wrote:

> Assuming the 8 or 9 is in cell A1 your formulae can be something like this
>
> =SUM($C$5:INDIRECT("$C$" & A1))
>
> "David S" wrote:
>
> > I have a spreadsheet that has many SUM formulas that change on a monthly
> > basis. Instead of manually changing each formula every month I want to
> > create a reference to pull the row number from one cell so that updates each
> > SUM formula. For example, change SUM($C$5:$C$8) to SUM($C$5:$C$9), where
> > changing the 8 to a 9 in a cell outside the report range will update all the
> > formulas. The SUM formulas are different for the columns, but use the same
> > row reference. I used to be able to do this in Lotus, but have never figured
> > out how to do this in Excel. We have Office 2007 software. Thank you for
> > your help!
> > --
> > David S

 
Reply With Quote
 
David S
Guest
Posts: n/a
 
      20th Apr 2010
This function is new to me and I can see where it will be very helpful once I
master its use. Thank you for your help.

--
David S


"Don Guillett" wrote:

> Better yet set up a defined name for the range and use that
> while on the desired sheet>insert>name>define>in the name box type in colC
> in the formula box type in
> =offset($c$5,0,0,counta($c$c),1)
> OR if numbers
> =offset($c$5,0,0,match(9999999,$c$c),1)
> or another formula to determine the last cell in col C. Look in the help
> index for OFFSET
> then use
> =sum(colc)
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "David S" <(E-Mail Removed)> wrote in message
> news:0E666D00-07A5-4239-BE1E-(E-Mail Removed)...
> >I have a spreadsheet that has many SUM formulas that change on a monthly
> > basis. Instead of manually changing each formula every month I want to
> > create a reference to pull the row number from one cell so that updates
> > each
> > SUM formula. For example, change SUM($C$5:$C$8) to SUM($C$5:$C$9), where
> > changing the 8 to a 9 in a cell outside the report range will update all
> > the
> > formulas. The SUM formulas are different for the columns, but use the
> > same
> > row reference. I used to be able to do this in Lotus, but have never
> > figured
> > out how to do this in Excel. We have Office 2007 software. Thank you
> > for
> > your help!
> > --
> > David S

>
> .
>

 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      21st Apr 2010
Hi David

As an alternative to using the volatile Indirect function, you could use
the faster and non-volatile Index function

=SUM($C$5:INDEX(C:C,A1))

The Index part, returns the cell in column C represented by the value in A1
--
Regards
Roger Govier

David S wrote:
> Thank you for your help. Sooo simple! But nothing I tried before would work.
>

 
Reply With Quote
 
Ashish Mathur
Guest
Posts: n/a
 
      21st Apr 2010
Hi,

You may select C4:C8 (row 4 is the header row) and convert it to a
List/Table by pressing Ctrl+L. When you convert a range to a List/Table, it
auto expands. Now when you add any data in row 9, all formulas in the
workbook will expand to include the 9th row.

The List feature was introduced from Excel 2003

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"David S" <(E-Mail Removed)> wrote in message
news:0E666D00-07A5-4239-BE1E-(E-Mail Removed)...
> I have a spreadsheet that has many SUM formulas that change on a monthly
> basis. Instead of manually changing each formula every month I want to
> create a reference to pull the row number from one cell so that updates
> each
> SUM formula. For example, change SUM($C$5:$C$8) to SUM($C$5:$C$9), where
> changing the 8 to a 9 in a cell outside the report range will update all
> the
> formulas. The SUM formulas are different for the columns, but use the
> same
> row reference. I used to be able to do this in Lotus, but have never
> figured
> out how to do this in Excel. We have Office 2007 software. Thank you
> for
> your help!
> --
> David S


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula in Excel 07 to get the formula used in one cell in anothercell, showing VALUES, not cells references TobiasAL Microsoft Excel Discussion 2 1st Nov 2009 10:09 AM
Formula in Excel 07 to get the formula used in one cell in anothercell, showing VALUES, not cells references TobiasAL Microsoft Excel Worksheet Functions 1 29th Oct 2009 12:08 PM
Automatic Update of Linked Cell References Joseph Wechselberger Microsoft Excel Misc 2 15th Jun 2009 06:08 PM
How to update/change cell references in a formula 510 Financeguy Microsoft Excel Misc 2 7th Oct 2008 05:27 PM
disable automatic update of references Daniel Schaedler Microsoft Excel Misc 0 4th Sep 2003 02:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.