Place a furmula in the neext cell automatically Without Macros

Vikalp

New Member
Joined
Jul 30, 2011
Messages
6
I am calculating the total account balance if enter the amount in credit column it get added and vice-versa for the debit amount. The formula to add or subtract is in the cell adjacent to Credit and debit cells. I want to copy this formula in the cell one row below automatically and specially without Macros.


For example B2 is for credit C2 is for debit and D2 is for total account balance and if I input in B2 the amount gets added to D1 (existing account balance) and the result is displayed in D2. I want to get this formula copied over to D3 (total account balance) automatically..


Please advice on how can I do this without Macros…..
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
B C D
1 Credit Debit Account Balance
2 5000
3 2500 7500
4 5000 2500

Only B and C are the input cells and D should automatically calculate the total balance
 
Upvote 0
Try..

[D2]=D1+B2-C2
drag down to copoy formula...

Result:
If [D1]=0
[D2]=5000
[D3]=0
[D4]=2500
 
Upvote 0
In line 3, 2500 is under credit and 7500 is the account balance
In line 4, 4000 is under debit and 3500 is the account balance
 
Upvote 0
Thanks villy.... but I want this to happen automatically.. I used the offset to calculate the moving average (average for pre-defined days in past) in that it is working fine but not in this case.. as I am also using nested if to check a) that both credit and debit should not be blank and b) they both should not have values in them only one can have the value at a time. I'll am planning to lock all the cells except Credit and Debit for which I have created dynamic named ranges. This I'll further use these ranges to analyze the data monthly...
 
Upvote 0
Is this along the lines of what you are after
Excel Workbook
ABCD
1*creditdebitaccount balance
2***0
301-07-115000*5000
402-07-112500*7500
503-07-11*50002500
Sheet1




I also added Data Validation to columns B and C with custom formula
Starting in B3 =(C3>1) and then in
C3 =(B3>1)

Once these have been entered highlight the range and go to Data/Validation and when given the option to place validation in the range click OK

Pedro
 
Upvote 0
Hi Pedro, I tried it but it is not working but this is exactly the problem... I tried it all but is there a way to work with dynamic named ranges?? I tried it but but no luck...
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,923
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top