Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dave L
 
Posts: n/a
Default How do I fix cell refs when adding rows

Is there any way for me to insert a row without changing a cell ref in a
formula eg =sum(a1:a5) instead of changing to A2:A6 I want A1:A6 ie the range
increases in line with the added row.

TIA
Dave
  #2   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default How do I fix cell refs when adding rows

=sum(a$1:a5)

Regards,
Stefi

€žDave L€ť ezt Ă*rta:

Is there any way for me to insert a row without changing a cell ref in a
formula eg =sum(a1:a5) instead of changing to A2:A6 I want A1:A6 ie the range
increases in line with the added row.

TIA
Dave

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave L
 
Posts: n/a
Default How do I fix cell refs when adding rows

$ doesn't work when you insert extra rows

"Stefi" wrote:

=sum(a$1:a5)

Regards,
Stefi

€žDave L€ť ezt Ă*rta:

Is there any way for me to insert a row without changing a cell ref in a
formula eg =sum(a1:a5) instead of changing to A2:A6 I want A1:A6 ie the range
increases in line with the added row.

TIA
Dave

  #4   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default How do I fix cell refs when adding rows

Sorry, I didn't test my answer thoroughly! I made additional test and got the
following: if you insert new row before row 1 then formula changes to
=SUM(A2:A6).
if you insert new row before row 6 (row of SUM), then formula remains
=SUM(A1:A5) with an empty row 6.
But if you insert new row before any other row (2-5) then formula changes to
=SUM(A1:A6).

Regards,
Stefi

€žDave L€ť ezt Ă*rta:

$ doesn't work when you insert extra rows

"Stefi" wrote:

=sum(a$1:a5)

Regards,
Stefi

€žDave L€ť ezt Ă*rta:

Is there any way for me to insert a row without changing a cell ref in a
formula eg =sum(a1:a5) instead of changing to A2:A6 I want A1:A6 ie the range
increases in line with the added row.

TIA
Dave

  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default How do I fix cell refs when adding rows

I think this does what you want:
=SUM(INDIRECT("A1:A"&ROW(A5)))

Does that help?

***********
Regards,
Ron


"Dave L" wrote:

Is there any way for me to insert a row without changing a cell ref in a
formula eg =sum(a1:a5) instead of changing to A2:A6 I want A1:A6 ie the range
increases in line with the added row.

TIA
Dave



  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave L
 
Posts: n/a
Default How do I fix cell refs when adding rows

Thanks Ron and Steffi

"Ron Coderre" wrote:

I think this does what you want:
=SUM(INDIRECT("A1:A"&ROW(A5)))

Does that help?

***********
Regards,
Ron


"Dave L" wrote:

Is there any way for me to insert a row without changing a cell ref in a
formula eg =sum(a1:a5) instead of changing to A2:A6 I want A1:A6 ie the range
increases in line with the added row.

TIA
Dave

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
Adding numbers in one cell and showing total in seperate cell Deernad Construction Excel Discussion (Misc queries) 12 November 29th 05 07:32 PM
adding zero's to a text cell Jennifer Excel Worksheet Functions 2 August 13th 05 02:54 AM
copying rows where a result cell has a certain value or higher wongard Excel Discussion (Misc queries) 0 August 12th 05 02:31 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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