Hi,
Would like to know if there's a single cell formula that would solve my Excel problem.
Would like to count (per row) how many values that is above 0 in table 2 using the criteria table (ex. add to count if Town and Juice = 1 in table 1 and positive value in Table 2)
The answer I wanted to generated can be seen in the Table, right of Table 2.
Here are sample tables.
Table 1 = Criteria Table
<tbody>
</tbody>
Table 2 = Main Table
<tbody>
</tbody>
<tbody>
</tbody>
Please note:
Table 1 is a static table.
Table 2 is pivot table meaning its dynamic therefore Columns and Rows of Table 2 may change when raw data is changed (columns may end up with a set of Milk, Bread, and Chocolate or all 4 present).
I've tried using Sumproduct and Countifs with Index Match but I cant seem to get the correct formula.
If there are other techniques other than a formula is ok, i haven't tried using pivot table using 2 data source yet.
Help is greatly appreciated.
Would like to know if there's a single cell formula that would solve my Excel problem.
Would like to count (per row) how many values that is above 0 in table 2 using the criteria table (ex. add to count if Town and Juice = 1 in table 1 and positive value in Table 2)
The answer I wanted to generated can be seen in the Table, right of Table 2.
Here are sample tables.
Table 1 = Criteria Table
Criteria Table | Town | Slums | City |
Juice | 1 | 0 | 1 |
Milk | 0 | 0 | 1 |
Bread | 1 | 1 | 1 |
Chocolate | 1 | 0 | 1 |
<tbody>
</tbody>
Table 2 = Main Table
Name | Type | Juice | Milk | Bread |
New Vegas | Town | 10 | 0 | 5 |
Diamond | City | 15 | 3 | 10 |
Whiterun | Town | 0 | 8 | 5 |
<tbody>
</tbody>
Name | Count |
New Vegas | 2 |
Diamond | 3 |
Whiterun | 1 |
<tbody>
</tbody>
Please note:
Table 1 is a static table.
Table 2 is pivot table meaning its dynamic therefore Columns and Rows of Table 2 may change when raw data is changed (columns may end up with a set of Milk, Bread, and Chocolate or all 4 present).
I've tried using Sumproduct and Countifs with Index Match but I cant seem to get the correct formula.
If there are other techniques other than a formula is ok, i haven't tried using pivot table using 2 data source yet.
Help is greatly appreciated.