Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cris B.
 
Posts: n/a
Default Need open ended cell for Sum range.

I have numerical data in column A rows 1:14.

I'm adding it up in row 15. Sum=(A1:A14)

Now I've been asked to insert more rows with data above row A14.

What can I put in my Sum formula in place of A14 so when I insert
a new row, any numerical data above it in column A automatically adds up?
Sum=(A1:????)

I don't want to have to go and change it to sum=(A1:A17) if I
insert 3 rows.... I have a huge file to create with sections like this. User
may have to insert new rows. They need to all add up.

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

If you goto ToolsOptionsEdit and check the Extend list formats and
formulas box, it should work automatically..

--

HTH

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


"Cris B." <Cris wrote in message
...
I have numerical data in column A rows 1:14.

I'm adding it up in row 15. Sum=(A1:A14)

Now I've been asked to insert more rows with data above row A14.

What can I put in my Sum formula in place of A14 so when I insert
a new row, any numerical data above it in column A automatically adds up?
Sum=(A1:????)

I don't want to have to go and change it to sum=(A1:A17) if I
insert 3 rows.... I have a huge file to create with sections like this.

User
may have to insert new rows. They need to all add up.



  #3   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Fri, 14 Oct 2005 06:33:16 -0700, "Cris B." <Cris
wrote:

I have numerical data in column A rows 1:14.

I'm adding it up in row 15. Sum=(A1:A14)

Now I've been asked to insert more rows with data above row A14.

What can I put in my Sum formula in place of A14 so when I insert
a new row, any numerical data above it in column A automatically adds up?
Sum=(A1:????)

I don't want to have to go and change it to sum=(A1:A17) if I
insert 3 rows.... I have a huge file to create with sections like this. User
may have to insert new rows. They need to all add up.


=SUM(A1:INDIRECT("A"&ROW()-1))

will work, but perhaps a more normal arrangement would be to have a
blank row between your total and the last numeric data item and
include the blank row in your Sum range. That way you can always
insert a new row in the blank row and have the range expand
automatically.
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Cris

Providing the insertion is made between rows 1 and 14, the formula will
expand automatically to include the widened range.
If the user choose to highlight row 15, then the formula will not adjust.
There are numerous ways of overcoming this.
You could put your formula on row 16 and make it =SUM(A1:A15) and in row
15 FormatCellsAlignmentHorizontalFill.
Typing an = sign in the cell will fill it with ======== to indicate that
this is the row being totaled to.

Regards

Roger Govier



Cris B. wrote:

I have numerical data in column A rows 1:14.

I'm adding it up in row 15. Sum=(A1:A14)

Now I've been asked to insert more rows with data above row A14.

What can I put in my Sum formula in place of A14 so when I insert
a new row, any numerical data above it in column A automatically adds up?
Sum=(A1:????)

I don't want to have to go and change it to sum=(A1:A17) if I
insert 3 rows.... I have a huge file to create with sections like this. User
may have to insert new rows. They need to all add up.



  #5   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Fri, 14 Oct 2005 14:44:16 +0100, "Bob Phillips"
wrote:

If you goto ToolsOptionsEdit and check the Extend list formats and
formulas box, it should work automatically..



Thanks Bob, That's one I hadn't spotted although it's selected in my
Excel application.

One problem is that while it extends the formats of rows above, it
won't extend any formulae. Am I missing something?

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________


  #6   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=SUM(OFFSET(INDIRECT("A1"),,,COUNT(A:A)-1,))

this assumes there are no numbers below the sum formula




Regards,

Peo Sjoblom


"Cris B." <Cris wrote in message
...
I have numerical data in column A rows 1:14.

I'm adding it up in row 15. Sum=(A1:A14)

Now I've been asked to insert more rows with data above row A14.

What can I put in my Sum formula in place of A14 so when I insert
a new row, any numerical data above it in column A automatically adds up?
Sum=(A1:????)

I don't want to have to go and change it to sum=(A1:A17) if I
insert 3 rows.... I have a huge file to create with sections like this.

User
may have to insert new rows. They need to all add up.



  #7   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi
If the user choose to highlight row 15, then the formula will not adjust.

should have read
If the user chose to highlight row 15, and inserted at this point, then
the formula will not adjust.

Regards

Roger Govier



Roger Govier wrote:

Hi Cris

Providing the insertion is made between rows 1 and 14, the formula
will expand automatically to include the widened range.
If the user choose to highlight row 15, then the formula will not adjust.
There are numerous ways of overcoming this.
You could put your formula on row 16 and make it =SUM(A1:A15) and in
row 15 FormatCellsAlignmentHorizontalFill.
Typing an = sign in the cell will fill it with ======== to indicate
that this is the row being totaled to.

Regards

Roger Govier



Cris B. wrote:

I have numerical data in column A rows 1:14.
I'm adding it up in row 15. Sum=(A1:A14)

Now I've been asked to insert more rows with data above row A14.

What can I put in my Sum formula in place of A14 so when I insert
a new row, any numerical data above it in column A automatically adds
up? Sum=(A1:????)
I don't want to have to go and change it to sum=(A1:A17) if I
insert 3 rows.... I have a huge file to create with sections like
this. User
may have to insert new rows. They need to all add up.



  #8   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi Richard,

I am not sure exactly what you refer to. Could you clarify for me?

Bob


"Richard Buttrey" wrote in
message ...
On Fri, 14 Oct 2005 14:44:16 +0100, "Bob Phillips"
wrote:

If you goto ToolsOptionsEdit and check the Extend list formats and
formulas box, it should work automatically..



Thanks Bob, That's one I hadn't spotted although it's selected in my
Excel application.

One problem is that while it extends the formats of rows above, it
won't extend any formulae. Am I missing something?

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



  #9   Report Post  
Richard Buttrey
 
Posts: n/a
Default

Hi Bob,

Yes, I have A1:A10 populated with some data and formatted say Red.
B1:B10 has formulae =A1 etc.

A11 has =Sum(A1:A10), copied into B11.

I understood your reply to indicate that introducing a new row at A11,
with the "Extend List Formats & Formulas" ticked, would copy the
formatting and formulae from the row above.

The red formatting certainly gets copied, but not the formula in B10.

Rgds

On Fri, 14 Oct 2005 15:47:55 +0100, "Bob Phillips"
wrote:

Hi Richard,

I am not sure exactly what you refer to. Could you clarify for me?

Bob


"Richard Buttrey" wrote in
message ...
On Fri, 14 Oct 2005 14:44:16 +0100, "Bob Phillips"
wrote:

If you goto ToolsOptionsEdit and check the Extend list formats and
formulas box, it should work automatically..



Thanks Bob, That's one I hadn't spotted although it's selected in my
Excel application.

One problem is that while it extends the formats of rows above, it
won't extend any formulae. Am I missing something?

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #10   Report Post  
Bob Phillips
 
Posts: n/a
Default

Roger,

What I meant was that if you enter a row above B11, and then enter a value
in the new B11, the old B11 (now B12 - this is getting confusing :))
automatically updates to reflect that row.

Odd thing is, it doesn't work with formulae directly, in the instance you
state, it updates by adding a value in A11. If the formula in B1 was =C1+D1
etc., it updates when the values are added to C11 AND D11.

Regards

Bob

"Richard Buttrey" wrote in
message ...
Hi Bob,

Yes, I have A1:A10 populated with some data and formatted say Red.
B1:B10 has formulae =A1 etc.

A11 has =Sum(A1:A10), copied into B11.

I understood your reply to indicate that introducing a new row at A11,
with the "Extend List Formats & Formulas" ticked, would copy the
formatting and formulae from the row above.

The red formatting certainly gets copied, but not the formula in B10.

Rgds

On Fri, 14 Oct 2005 15:47:55 +0100, "Bob Phillips"
wrote:

Hi Richard,

I am not sure exactly what you refer to. Could you clarify for me?

Bob


"Richard Buttrey" wrote in
message ...
On Fri, 14 Oct 2005 14:44:16 +0100, "Bob Phillips"
wrote:

If you goto ToolsOptionsEdit and check the Extend list formats and
formulas box, it should work automatically..


Thanks Bob, That's one I hadn't spotted although it's selected in my
Excel application.

One problem is that while it extends the formats of rows above, it
won't extend any formulae. Am I missing something?

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________



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
How do I change a cell range with a reference cell? Danneskjold Excel Discussion (Misc queries) 2 August 11th 05 07:37 PM
How do I refer a Range to a Cell Mal Excel Worksheet Functions 6 June 7th 05 08:47 AM
cell outside range Mrs. T. Excel Discussion (Misc queries) 2 May 19th 05 08:28 PM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM
How can I assign a range starting cell based on a variable locati. feman007 Excel Worksheet Functions 3 March 9th 05 11:40 PM


All times are GMT +1. The time now is 03:08 PM.

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"