Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Adding numbers in one cell and showing total in seperate cell | Excel Discussion (Misc queries) | |||
adding zero's to a text cell | Excel Worksheet Functions | |||
copying rows where a result cell has a certain value or higher | Excel Discussion (Misc queries) | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |