Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Fred Holmes
 
Posts: n/a
Default Keep formula from changing?

Excel 2000

Excel is "too smart"!

I have a worksheet that is a simple check register. In the column
that calculates the checkbook balance, the formula, in R1C1 notation,
is:

=+R[-1]C-RC[-2]+RC[-1]

R[-1]C is the balance from the row above.

C[-1] contains credits/deposits.

C[2-] contains debits/checks

All very simple and works well.

On occasion I want to insert a row(s), generally by cut/pasting the
data in the credits and debits colums (and corresponding columns such
as "payee") to a lower (greater #) row. I'd like to be able to do
this without having the forumulae in the balance column (as above)
chage at all, never, no way. But Excel is too smart and changes the
formulae. There is some change, whether the formula is "relative
reference" or "absolute reference". The formula chages whether the
cell address notation is RC or A1.

On rarer occasions I want to delete a row, by moving the data up.

Any way to do this?

Current solution is simply to data, fill (drag the fill handle) the
formula in the balance column all over again.

Thanks,

Fred Holmes


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

On Fri, 14 Oct 2005 11:16:27 -0400, Fred Holmes wrote:

Excel 2000

Excel is "too smart"!

I have a worksheet that is a simple check register. In the column
that calculates the checkbook balance, the formula, in R1C1 notation,
is:

=+R[-1]C-RC[-2]+RC[-1]

R[-1]C is the balance from the row above.

C[-1] contains credits/deposits.

C[2-] contains debits/checks

All very simple and works well.

On occasion I want to insert a row(s), generally by cut/pasting the
data in the credits and debits colums (and corresponding columns such
as "payee") to a lower (greater #) row. I'd like to be able to do
this without having the forumulae in the balance column (as above)
chage at all, never, no way. But Excel is too smart and changes the
formulae. There is some change, whether the formula is "relative
reference" or "absolute reference". The formula chages whether the
cell address notation is RC or A1.

On rarer occasions I want to delete a row, by moving the data up.

Any way to do this?

Current solution is simply to data, fill (drag the fill handle) the
formula in the balance column all over again.

Thanks,

Fred Holmes



Assuming data is as follows. I've reverted to A1 reference because I
don't understand RC references :-)

A1 Debits, B1 Credits, C1 Balance and numerical data starts in A3.

Add a helper column D.
C3=
=IF(D3<D2,INDIRECT("C"&(ROW()-D3-1)),INDIRECT("C"&(ROW()-1)))-INDIRECT("A"&ROW())+INDIRECT("B"&ROW())

D3 =
=ROW()-ROW(D$3)-COUNTA(A$3:A3)+1

Copy down as appropriate.


Now you can cut and paste and delete rows whilst maintaining the
correct balance.

HTH
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #3   Report Post  
Fred Holmes
 
Posts: n/a
Default

Looks like a winner. I'll have to figure out what this INDIRECT()
function is all about.

Thanks,

Fred Holmes

On Fri, 14 Oct 2005 17:13:03 +0100, Richard Buttrey
wrote:

On Fri, 14 Oct 2005 11:16:27 -0400, Fred Holmes wrote:

Excel 2000

Excel is "too smart"!

I have a worksheet that is a simple check register. In the column
that calculates the checkbook balance, the formula, in R1C1 notation,
is:

=+R[-1]C-RC[-2]+RC[-1]

R[-1]C is the balance from the row above.

C[-1] contains credits/deposits.

C[2-] contains debits/checks

All very simple and works well.

On occasion I want to insert a row(s), generally by cut/pasting the
data in the credits and debits colums (and corresponding columns such
as "payee") to a lower (greater #) row. I'd like to be able to do
this without having the forumulae in the balance column (as above)
chage at all, never, no way. But Excel is too smart and changes the
formulae. There is some change, whether the formula is "relative
reference" or "absolute reference". The formula chages whether the
cell address notation is RC or A1.

On rarer occasions I want to delete a row, by moving the data up.

Any way to do this?

Current solution is simply to data, fill (drag the fill handle) the
formula in the balance column all over again.

Thanks,

Fred Holmes



Assuming data is as follows. I've reverted to A1 reference because I
don't understand RC references :-)

A1 Debits, B1 Credits, C1 Balance and numerical data starts in A3.

Add a helper column D.
C3=
=IF(D3<D2,INDIRECT("C"&(ROW()-D3-1)),INDIRECT("C"&(ROW()-1)))-INDIRECT("A"&ROW())+INDIRECT("B"&ROW())

D3 =
=ROW()-ROW(D$3)-COUNTA(A$3:A3)+1

Copy down as appropriate.


Now you can cut and paste and delete rows whilst maintaining the
correct balance.

HTH
__
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
adding row to forumla carrera Excel Discussion (Misc queries) 9 August 23rd 05 10:24 PM
need to copy/paste formula w/o it changing Bonnie Excel Discussion (Misc queries) 4 March 10th 05 05:53 PM
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
A cell reference in a formula changing knemitz Excel Worksheet Functions 1 February 28th 05 06:10 PM
Can I use TODAY Function in formula without it changing the next . Tucson Guy Excel Discussion (Misc queries) 1 December 19th 04 09:47 AM


All times are GMT +1. The time now is 04:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"