Thread
:
Best way to insert rows
View Single Post
#
6
Posted to microsoft.public.excel.misc
Don Guillett
external usenet poster
Posts: 10,124
Best way to insert rows
to sum to the row desired
=SUM(OFFSET($B$1,,,ROW()-1,1))
to sum to the last row with a number
=SUM(OFFSET($B$1,,,MATCH(99999,B:B),1))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"John Google" wrote in message
oups.com...
Hi,
Suppose I have a simple spread sheet where A1-A4,B1-B4 and C1-C4 have
various numbers.
A5 has the formula = SUM(A1:A4). B5 and C5 have similar formula to sum
their rows.
I now have a simple question.
I want to insert 4 rows after row 4 to enter new data into the 3
columns (12 cells). The formula which was in A5 will be moved to A9
(similar for cols B and C).
I can enter the rows OK by selecting 4 rows from A5 to A8 then
selecting the menus Insert / Rows.
However, when I do this, the formulae still refer to =SUM(A1:A4) and
not =SUM(A1:A8).
What is the best way to insert rows and adjust the formulae
automatically?
Thanks!
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett