bkjohn2016
New Member
- Joined
- Sep 9, 2016
- Messages
- 38
Is it possible to reference another cell to use as an array constant?
Let's say in table A I have the following data:
<tbody>
</tbody>
And I'd like the the amount aggregated by the type code in table B:
<tbody>
</tbody>I use the following formulation to get the aggregations in column C of table B:
And for C13 I can use the following to get the desired result of 30:
Is it possible to create a formulation that would use cell B13 to create a dynamic array constant?
Let's say in table A I have the following data:
A | B | |
1 | Type Code | Amount |
2 | 1 | 10 |
3 | 2 | 20 |
4 | 3 | 30 |
5 | 4 | 40 |
6 | 5 | 50 |
<tbody>
</tbody>
And I'd like the the amount aggregated by the type code in table B:
A | B | C | |
10 | Type Desc | Type Code | Amt |
11 | A | 1 | 10 |
12 | B | 2 | 20 |
13 | C | 1,2 | 30 |
14 | D | 5 | 50 |
15 | E | 4 | 40 |
<tbody>
</tbody>
Code:
=SUMPRODUCT(--(A$1:$A$6=$B11),
$B$2:$B$6)
And for C13 I can use the following to get the desired result of 30:
Code:
=SUMPRODUCT(--($A1:$A$6={1,2})*
$B$1:$B$6)
Is it possible to create a formulation that would use cell B13 to create a dynamic array constant?