Formula to calculate values in current row and above only

germany1403

New Member
Joined
Oct 6, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hello, everyone! I am trying to modify an electronic transaction register (see attached image), so that it will make it easier for me to balance my transactions with my actual checking account balance in my bank. Everything is working great with the exception of column L. Column L is supposed to auto-calculate the account balance based on transactions that have not yet cleared (empty cells in column F).

Example: Cell I8 reflects $6,250.00. L8 is supposed to take that value plus or minus all of the transactions that have not yet cleared. In this case, L8 should auto generate the following formula: I8 - H8 - H7 + G5. Calculations should only include current row values and above.

For reference, I added a faux column "M" that outlines what the formula is supposed to reflect for each field in column L.

I know this is a complicated question, but am hoping that someone can follow my train of thought. Please let me know if you have any questions and thanks in advance for all forthcoming responses.
 

Attachments

  • Capture Table.JPG
    Capture Table.JPG
    78 KB · Views: 22

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Ignoring your approach, I seem that you might use in L3:
Excel Formula:
=SUM(H$3:H3)-SUM(G$3:G3)
Then copy down

Bye
 
Upvote 0
How about in L3 dragged down
Excel Formula:
=SUMIFS(H$3:H3,F$3:F3,"c")-SUMIFS(G$3:G3,F$3:F3,"c")
 
Upvote 0
Solution
Ignoring your approach, I seem that you might use in L3:
Excel Formula:
=SUM(H$3:H3)-SUM(G$3:G3)
Then copy down

Bye
Hello Anthony47, thank you very much for your reply. I tried it, but it did not accomplish the task. The formula that Fluff posted actually did the trick. Thanks for responding though- I appreciate it.
 
Upvote 0
How about in L3 dragged down
Excel Formula:
=SUMIFS(H$3:H3,F$3:F3,"c")-SUMIFS(G$3:G3,F$3:F3,"c")
THANK YOU, THANK YOU, THANK YOU! Your formula worked and accomplished exactly what I hoped it would do. Thanks again for taking the time to respond. Much appreciate it!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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