I'm creating a custom solution to track basic accounting data for a 20-person organization. I have a listing of accounts that includes primary (parent) accounts and sub-accounts. Each of these accounts can have child accounts (for example, Account 6 is a child to Account 4, which, in turn, is a child to Account 1). In this construct, Account 1 would be purely a parent account, Account 4 would be a sub-parent (parent + child), and Account 6 would be purely a child account. Only purely child accounts have transactions assigned to them on the transactions spreadsheet.
I'm trying to display subtotals for each of these accounts and, for some unknown reason, keep getting a zero subtotal.
The table columns include #, Account, Parent, CurrentBalance. The first parent account # is 1.00. The first sub-parent to this account is 1.50 and the first child to 1.50 is 1.51. The following formula will correctly determine if the account has children and correctly determine the appropriate range to subtotal. If the account is a child-only, this formula defaults to the final SUMIFS statement to sum the transactions from a table on another spreadsheet. Using this formula always returns the correct transaction totals, but always leaves the subtotals at zero.
If I extract the SUMIFS statement (purely copy and paste, no modification), the child-only account summation becomes:Please Login or Register to view this content.
Using this method, the parent account correctly subtotals. I realize I could use this as a solution, but I need one formula for all of the cells in the subtotal column because accounts can be added/deleted/changed at any time.Please Login or Register to view this content.
If the first formula correctly shows the child's total, any idea why it doesn't factor into the parent subtotal? My first thought is that the formula is ignoring the child's summation because it considers it a subtotal itself, but if this was the case, why would the extracted SUMIFS statement allow the subtotals to calculate correctly? Also, I've tried trading out the SUMIFS formula for a SUMIF, SUM(IF) and SUMPRODUCT, all of which returned the correct results, but none of which would be included in the parent account subtotal when included in the larger formula.
Thanks in advance for any help you can provide.
Bookmarks