How to SUMIF, with the range and sum range dependent on tables located across multiple sheets

hutch27

New Member
Joined
May 5, 2014
Messages
37
Background:

  • Summary tab - This consists of rows with various general ledger ("GL") account names, each of which has an associated GL Account Number and GL Tab Name in the cell to the right of the preceding item. Additionally, there is a reconciliation column in the cells to the right of each GL Tab Name. Here is a table to visualize this Summary tab:

GL Account NameGL Account NumberGL Tab NameTable NameBalance, per supporting tab
Cash100Cash SummaryTable_Cash_Summary
Dividend Income110IncomeTable_Income
Bank Fees120ExpensesTable_Expenses

  • GL Tab Names tabs - For each corresponding GL Tab Name, there are unique sheets, each of which has a name equal to the corresponding GL Tab name, and tables, equal to the corresponding Table Name. Tables consist of a variable number of columns, but all will have a GL Account Number Column and an Amount column.
Goal:

  1. To create a formula in the Balance, Per Supporting Tab column with the following logic:
    • Using the GL Tab Name and the associated Table Name, sum all values (Amounts column) within the table (which are located on each corresponding GL Tab Name sheet) related to that GL Account Number

Thanks!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Your SUMIFS formula ("for the Balance per supporting tab") will just about write itself when you start typing. As as example, for your first row "Cash", the formula will look something like this:

Excel Formula:
=SUMIFS(Table_Cash_Summary[AMOUNT],Table_Cash_Summary[GL Account Number],100,Table_Cash_Summary[GL Account Name],"Cash")

As soon as you type in "=SUMIFS(" and then type the "T" -> all your tables will come up in a little box below the formula (I forget the name of that box at the moment) at any rate, click on the table you want to use. Then as soon as you type an open bracket "[" all the columns of that table will come up in that same box. Likewise click on the column you want, type a comma, and then add your criteria. Continue like this until you have all the Columns and criteria. Remember that each set of column and criteria must be preceded by the Table Name.

Please note that in the sample formula I provided I used "Amount", that Column for you will be the column that you are summing. Also except for the column you are summing which must come first, the order in which you enter the other Columns and Criteria is irrelevant.

You do not need the Tab Name.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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