J
jxbeeman
Hi,
What i'm trying to do is use 1 Array as a lookup array and the other array
which contains the values that i want to lookup.
For example:
Array 1
Col A B
1 Top Part Sub Part
2 A AA
3 A AB
4 A AC
5 B BA
6 B BB
Array 2 (lets say this is something like order qty and is in another sheet)
Col F G
1 sub Part Qty
2 AA 1
3 BB 2
4 AC 2
5 AB 5
So say i wanted a summary for Part A (which contains AA, AB, AC).
The result would be (sum => AA+AB+AC => 1+2+5 = 8)
Or a summary for Part B = 2.
The problem i'm running into is the fact that these 2 arrays will not be
matched up (Arrays will be in separate worksheets). I've been working on it
and have come up with something along the following:
(Looking for Part "A")
= Sum(Vlookup( (Index(B2:B6, ((A2:A6="A")*Row(A2:A6)) ) F2:G5, 2, 0))
the result for a search on part "A" should yield = 8
This works on a line by line basis but not at an ARRAY level.
Any help would be greatly appreciated.
Thanks,
Josh
What i'm trying to do is use 1 Array as a lookup array and the other array
which contains the values that i want to lookup.
For example:
Array 1
Col A B
1 Top Part Sub Part
2 A AA
3 A AB
4 A AC
5 B BA
6 B BB
Array 2 (lets say this is something like order qty and is in another sheet)
Col F G
1 sub Part Qty
2 AA 1
3 BB 2
4 AC 2
5 AB 5
So say i wanted a summary for Part A (which contains AA, AB, AC).
The result would be (sum => AA+AB+AC => 1+2+5 = 8)
Or a summary for Part B = 2.
The problem i'm running into is the fact that these 2 arrays will not be
matched up (Arrays will be in separate worksheets). I've been working on it
and have come up with something along the following:
(Looking for Part "A")
= Sum(Vlookup( (Index(B2:B6, ((A2:A6="A")*Row(A2:A6)) ) F2:G5, 2, 0))
the result for a search on part "A" should yield = 8
This works on a line by line basis but not at an ARRAY level.
Any help would be greatly appreciated.
Thanks,
Josh