Multiple criteria sumif array formula with 'only look at range above this row' logic

Ed_Vee

New Member
Joined
May 14, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I’m trying to create a tab in a live google sheet that acts like a bank register with multiple accounts. It would have a sender ID column, a receiver ID column and a transaction amount column. What I’m now trying to build is a column which outputs an account balance for the sender at the point the transaction is requested based on all previous transactions to serve the purpose of validating whether they have enough funds in their account.

In order to do this I am attempting to create a cumulative cash in and cumulative cash out column that corresponds to the sender attempting to make the transaction which can then be used to calculate the balance for the sender.

I’m having trouble finding a formula that works for this purpose. It needs to say "sum if receiver ID matches this column’s sender ID AND if the transaction occurred prior to this one (is above this one in the sheet). It also needs to be an array formula to enable it to update automatically when new transactions are attempted to be made and are added to the bottom of the sheet.

Any ideas how to achieve this?
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Ed_Vee

New Member
Joined
May 14, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Correction: "sum if receiver ID matches this row’s sender ID"
 

Watch MrExcel Video

Forum statistics

Threads
1,127,443
Messages
5,624,803
Members
416,054
Latest member
Ariel2219

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
Top