Full disclosure this is a cross-forum thread (excelgure.ca) since I need to find a solution quickly!
https://www.excelguru.ca/forums/sho...abs-with-multiple-criteria-array-and-indirect
Hi Everyone, I'm spinning my wheels here between index match and sumproduct arrays but I think the indirect for multiple tabs is whats killing me. Here's the scenario, I have a GL data dumps (one tab for each month) and I need to map the GL account to the financial statement line items. Sounds simple but there are multiple 'stores' in each GL as well and for some reason when I use indirect its not working for the tabs (I'm using tab names instead of tables for the indirect reference). Another thing that I think always clouds my mind is I like to create formulas I can 1) Drag and 2) easily use in the future by adding data... I've also attached a sheet for reference - located in other forum since Mr Excel doesnt let you add files.
Thanks so much in advance!
Raw data in tabs (two tabs for two months as example):
[TABLE="class: cms_table, width: 400"]
<tbody>[TR]
[TD]Tab - January[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GL Account[/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]5011 · Apples[/TD]
[TD="align: right"]10.00[/TD]
[TD="align: right"]11.00[/TD]
[TD="align: right"]15.00[/TD]
[/TR]
[TR]
[TD]5012 · Bananas[/TD]
[TD="align: right"]20.00[/TD]
[TD="align: right"]12.00[/TD]
[TD="align: right"]16.00[/TD]
[/TR]
[TR]
[TD]5013 · Grapes[/TD]
[TD="align: right"]30.00[/TD]
[TD="align: right"]13.00[/TD]
[TD="align: right"]17.00[/TD]
[/TR]
[TR]
[TD]5014 · Water[/TD]
[TD="align: right"]40.00[/TD]
[TD="align: right"]14.00[/TD]
[TD="align: right"]18.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tab - February[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GL Account[/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]5011 · Apples[/TD]
[TD="align: right"]15.00[/TD]
[TD="align: right"]16.00[/TD]
[TD="align: right"]20.00[/TD]
[/TR]
[TR]
[TD]5012 · Bananas[/TD]
[TD="align: right"]25.00[/TD]
[TD="align: right"]17.00[/TD]
[TD="align: right"]21.00[/TD]
[/TR]
[TR]
[TD]5013 · Grapes[/TD]
[TD="align: right"]35.00[/TD]
[TD="align: right"]18.00[/TD]
[TD="align: right"]22.00[/TD]
[/TR]
[TR]
[TD]5014 · Water[/TD]
[TD="align: right"]45.00[/TD]
[TD="align: right"]19.00[/TD]
[TD="align: right"]23.00[/TD]
[/TR]
</tbody>[/TABLE]
Mapping from GL to Financials:
[TABLE="class: cms_table, width: 405"]
<tbody>[TR]
[TD="colspan: 2"][/TD]
[/TR]
[TR]
[TD]GL Name[/TD]
[TD]Statement Name[/TD]
[/TR]
[TR]
[TD]5011 · Apples[/TD]
[TD]Revenue - Fruit[/TD]
[/TR]
[TR]
[TD]5012 · Bananas[/TD]
[TD]Revenue - Fruit[/TD]
[/TR]
[TR]
[TD]5013 · Grapes[/TD]
[TD]Revenue - Fruit[/TD]
[/TR]
[TR]
[TD]5014 · Water[/TD]
[TD]Revenue - Drinks[/TD]
[/TR]
</tbody>[/TABLE]
Final Product(s):
[TABLE="class: cms_table, width: 336"]
<tbody>[TR]
[TD]Financial Summary - January[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]Revenue - Fruit[/TD]
[TD="align: right"]60.00[/TD]
[TD="align: right"]36.00[/TD]
[TD="align: right"]48.00[/TD]
[/TR]
[TR]
[TD]Revenue - Drinks[/TD]
[TD="align: right"]40.00[/TD]
[TD="align: right"]14.00[/TD]
[TD="align: right"]18.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Financial Summary - February[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]Revenue - Fruit[/TD]
[TD="align: right"]75.00[/TD]
[TD="align: right"]51.00[/TD]
[TD="align: right"]63.00[/TD]
[/TR]
[TR]
[TD]Revenue - Drinks[/TD]
[TD="align: right"]45.00[/TD]
[TD="align: right"]19.00[/TD]
[TD="align: right"]23.00[/TD]
[/TR]
</tbody>[/TABLE]
https://www.excelguru.ca/forums/sho...abs-with-multiple-criteria-array-and-indirect
Hi Everyone, I'm spinning my wheels here between index match and sumproduct arrays but I think the indirect for multiple tabs is whats killing me. Here's the scenario, I have a GL data dumps (one tab for each month) and I need to map the GL account to the financial statement line items. Sounds simple but there are multiple 'stores' in each GL as well and for some reason when I use indirect its not working for the tabs (I'm using tab names instead of tables for the indirect reference). Another thing that I think always clouds my mind is I like to create formulas I can 1) Drag and 2) easily use in the future by adding data... I've also attached a sheet for reference - located in other forum since Mr Excel doesnt let you add files.
Thanks so much in advance!
Raw data in tabs (two tabs for two months as example):
[TABLE="class: cms_table, width: 400"]
<tbody>[TR]
[TD]Tab - January[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GL Account[/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]5011 · Apples[/TD]
[TD="align: right"]10.00[/TD]
[TD="align: right"]11.00[/TD]
[TD="align: right"]15.00[/TD]
[/TR]
[TR]
[TD]5012 · Bananas[/TD]
[TD="align: right"]20.00[/TD]
[TD="align: right"]12.00[/TD]
[TD="align: right"]16.00[/TD]
[/TR]
[TR]
[TD]5013 · Grapes[/TD]
[TD="align: right"]30.00[/TD]
[TD="align: right"]13.00[/TD]
[TD="align: right"]17.00[/TD]
[/TR]
[TR]
[TD]5014 · Water[/TD]
[TD="align: right"]40.00[/TD]
[TD="align: right"]14.00[/TD]
[TD="align: right"]18.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tab - February[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GL Account[/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]5011 · Apples[/TD]
[TD="align: right"]15.00[/TD]
[TD="align: right"]16.00[/TD]
[TD="align: right"]20.00[/TD]
[/TR]
[TR]
[TD]5012 · Bananas[/TD]
[TD="align: right"]25.00[/TD]
[TD="align: right"]17.00[/TD]
[TD="align: right"]21.00[/TD]
[/TR]
[TR]
[TD]5013 · Grapes[/TD]
[TD="align: right"]35.00[/TD]
[TD="align: right"]18.00[/TD]
[TD="align: right"]22.00[/TD]
[/TR]
[TR]
[TD]5014 · Water[/TD]
[TD="align: right"]45.00[/TD]
[TD="align: right"]19.00[/TD]
[TD="align: right"]23.00[/TD]
[/TR]
</tbody>[/TABLE]
Mapping from GL to Financials:
[TABLE="class: cms_table, width: 405"]
<tbody>[TR]
[TD="colspan: 2"][/TD]
[/TR]
[TR]
[TD]GL Name[/TD]
[TD]Statement Name[/TD]
[/TR]
[TR]
[TD]5011 · Apples[/TD]
[TD]Revenue - Fruit[/TD]
[/TR]
[TR]
[TD]5012 · Bananas[/TD]
[TD]Revenue - Fruit[/TD]
[/TR]
[TR]
[TD]5013 · Grapes[/TD]
[TD]Revenue - Fruit[/TD]
[/TR]
[TR]
[TD]5014 · Water[/TD]
[TD]Revenue - Drinks[/TD]
[/TR]
</tbody>[/TABLE]
Final Product(s):
[TABLE="class: cms_table, width: 336"]
<tbody>[TR]
[TD]Financial Summary - January[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]Revenue - Fruit[/TD]
[TD="align: right"]60.00[/TD]
[TD="align: right"]36.00[/TD]
[TD="align: right"]48.00[/TD]
[/TR]
[TR]
[TD]Revenue - Drinks[/TD]
[TD="align: right"]40.00[/TD]
[TD="align: right"]14.00[/TD]
[TD="align: right"]18.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Financial Summary - February[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]Revenue - Fruit[/TD]
[TD="align: right"]75.00[/TD]
[TD="align: right"]51.00[/TD]
[TD="align: right"]63.00[/TD]
[/TR]
[TR]
[TD]Revenue - Drinks[/TD]
[TD="align: right"]45.00[/TD]
[TD="align: right"]19.00[/TD]
[TD="align: right"]23.00[/TD]
[/TR]
</tbody>[/TABLE]