Google Sheets Array Formula Sumifs

I am trying to convert the below formula into an array formula.
Google sheets array formula sumifs. Sumifs with other functions. Google sheets sumif with multiple criteria or logic the sumif function in google sheets is designed to add up values based on just one criterion. If you know how to use sumifs in offline spreadsheet applications like ms excel or office 365 you can skip this tutorial. If you change entries or add text to blank cells the total updates to include the new data.
I can make it work in an array but it displays the wrong values compared to the normal formula which i have to drag down. The second condition is which account they pay into. We do this in two ways. Returns one number divided by another without the remainder.
We have multple bank accounts and i like to keep track of this. Google sheets includes a built in function called sum for this purpose. Sumifs with or logic criteria in different columns google sheets sumifs function syntax basic uses. I use array formulas for everything but i cant figure this one out.
Currently i have to drag my formula down a gazillion rows but i know this is inefficient. You can address the sumifs array formula expanding issue with alternative formulas. Before explaining the google sheets function sumifs let me tell you one thing. For example to sum apples and oranges amounts utilize this formula.
With a function in place the spreadsheet automatically updates when you make changes in the range of cells in the formula. Given parameters x n m and a returns the power series sum a 1 x n a 2 x n m. A i x n i 1 m where i is the number of entries in range a. Sum cells with multiple or criteria.
To sum with multiple criteria you can add two or more sumif functions together. Google sheets sumifs with logical operators. Either type in the word arrayformula and add an opening closing brackets to wrap your formula or more easily just hit ctrl shift enter cmd shift enter on a mac and google sheets will add the arrayformula wrapper for us. Sumifs with empty and non empty cells.
So that is one condition. Unlike sumif the function sumifs does not expand the results even if you use the function arrayformula with it.