close

Hi,

I can't figure out why is it that in some workbooks that I have, when I
enter additional row above Total row (which calculates sum), that Total row
includes the row I inserted, but some don't.
Example: I have invoices coming that I have to insert every day, so when I
insert another row for an invoice, cell that has SUM(D325), doesn't change
to SUM(D326). Sometimes it does, but only when I enter an amount into the
cell of inserted row, but in this particular workbook, it doesn't.
I need help with this, beacuse I don't want to have to change range every
time I insert a row.

Thanks a lot.


The problem only occurs when you insert new rows at the edge of your sum
range. If this bothers you, you could try a different approach to
summing.

Instead of placing =SUM(D325) in D26, replace it with this formula:
=SUM(D3ffset(D26,-1,0))

Then you don't need to change it when new rows are inserted there.--
John James
------------------------------------------------------------------------
John James's Profile: www.excelforum.com/member.php...oamp;userid=32690
View this thread: www.excelforum.com/showthread...hreadid=532549
It works for me (insert, and on enter amount it adjusts the formula)
*unless* I insert multiple lines and complete them out of sequence.
Then, once the sequence is broken, the formula remains at fault until
the formula is amended.

Would that be your reason too?

--

umba-sr Wrote:
gt; Hi,
gt;
gt; I can't figure out why is it that in some workbooks that I have, when
gt; I
gt; enter additional row above Total row (which calculates sum), that Total
gt; row
gt; includes the row I inserted, but some don't.
gt; Example: I have invoices coming that I have to insert every day, so
gt; when I
gt; insert another row for an invoice, cell that has SUM(D325), doesn't
gt; change
gt; to SUM(D326). Sometimes it does, but only when I enter an amount into
gt; the
gt; cell of inserted row, but in this particular workbook, it doesn't.
gt; I need help with this, beacuse I don't want to have to change range
gt; every
gt; time I insert a row.
gt;
gt; Thanks a lot.--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: www.excelforum.com/member.php...oamp;userid=21059
View this thread: www.excelforum.com/showthread...hreadid=532549If you put this formula directly under the list in column D you want to sum,
it will always sum from D3 to the cell directly above it. I do a lot of cut
and pasting and constantly have to change my formulas unless I plan ahead and
insert my formulas like this.

=SUM(INDIRECT(quot;R3C4:R[-1]C4quot;,0))

quot;umba-srquot; wrote:

gt; Hi,
gt;
gt; I can't figure out why is it that in some workbooks that I have, when I
gt; enter additional row above Total row (which calculates sum), that Total row
gt; includes the row I inserted, but some don't.
gt; Example: I have invoices coming that I have to insert every day, so when I
gt; insert another row for an invoice, cell that has SUM(D325), doesn't change
gt; to SUM(D326). Sometimes it does, but only when I enter an amount into the
gt; cell of inserted row, but in this particular workbook, it doesn't.
gt; I need help with this, beacuse I don't want to have to change range every
gt; time I insert a row.
gt;
gt; Thanks a lot.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()