Hi,
What I have:
Two tables. The first one (Table 1) is the origin of data: from left to right it is monthly budgets, three columns per month; from top to bottom it is a list of unique items. Columns have unique titles.
[pre]
[/pre]
What I want:
Basically, each cell of the second table should contain a sum for a given group items for a given month. Normally this is done by adding a table with relation group->items and using SUMIFS. Unfortunately the spreadsheet is locked for changes and the only editable cells are those in the mentioned tables. No pivot, no additional columns, no new sheets etc.
At the time, this problem occured, I simply linked the cells manually as the second table is relatively small -- only 6 rows. But still, 6 rows X 12 months and each cell from the table 1 should be fit into. I'd like to have a more elegant solution.
What I tryed:
1. A new workbook. Link to data in the Table 1 - aggregate -- link back to the Table 2. Works. Not good -- I need to keep an eye on another file.
2. An approach with indirect referencing and using array functions. {=SUM(INDIRECT("R"&{21,23,27}&"C"&{15,15,15},FALSE))} sums only the first of the three needed cells.
Any thoughts?
Regards,
Pavel
PS Chandoo, post form needs more info on markup syntax. {[<?
What I have:
Two tables. The first one (Table 1) is the origin of data: from left to right it is monthly budgets, three columns per month; from top to bottom it is a list of unique items. Columns have unique titles.
[pre]
Code:
Like this:
Items Jan1 Jan2 Jan3 Feb1 Feb2 Feb3 ...
-----------------------------------------
Item1
Item2
Item3
...
The second table (Table 2) should be filled from the first one and is organized as such: from left to right it has one column per month, corresponding to the first column of the three monlthy ones from the first table; from top to bottom it has a list of groups of items from the first table.
Like this:
Groups Jan1 Feb1 Mar1 ...
---------------------------
Group1
Group2
...
where Group1 consists of Items 1, 5, 7, etc
What I want:
Basically, each cell of the second table should contain a sum for a given group items for a given month. Normally this is done by adding a table with relation group->items and using SUMIFS. Unfortunately the spreadsheet is locked for changes and the only editable cells are those in the mentioned tables. No pivot, no additional columns, no new sheets etc.
At the time, this problem occured, I simply linked the cells manually as the second table is relatively small -- only 6 rows. But still, 6 rows X 12 months and each cell from the table 1 should be fit into. I'd like to have a more elegant solution.
What I tryed:
1. A new workbook. Link to data in the Table 1 - aggregate -- link back to the Table 2. Works. Not good -- I need to keep an eye on another file.
2. An approach with indirect referencing and using array functions. {=SUM(INDIRECT("R"&{21,23,27}&"C"&{15,15,15},FALSE))} sums only the first of the three needed cells.
Any thoughts?
Regards,
Pavel
PS Chandoo, post form needs more info on markup syntax. {[<?