exoticdisease
New Member
- Joined
- Jun 29, 2016
- Messages
- 10
I have an array of criteria and a criteria range within which to match these criteria and a set of values to sum when the criteria are matched. The array of criteria is approx 20 items, the range of criteria and the sum range are approx 10,000 items (same length)
Array of criteria (e.g. a, b, c, d, e, f...)
Criteria range (e.g. a, a, a, a, b, b, c, c, d, d, e, e, e, f, g, g, d, d, a, d, e, g, h, )
Sum range (e.g. 1, 2, 3, 4, 5, 6, 7....)
I want to do this using sumproduct but I don't want to write out the criteria range = first criteria, criteria range = second criteria, criteria range = third criteria etc....
Is there a way to write the sumproduct where you can input an array of criteria to be compared with the criteria range?
Thanks!
Array of criteria (e.g. a, b, c, d, e, f...)
Criteria range (e.g. a, a, a, a, b, b, c, c, d, d, e, e, e, f, g, g, d, d, a, d, e, g, h, )
Sum range (e.g. 1, 2, 3, 4, 5, 6, 7....)
I want to do this using sumproduct but I don't want to write out the criteria range = first criteria, criteria range = second criteria, criteria range = third criteria etc....
Is there a way to write the sumproduct where you can input an array of criteria to be compared with the criteria range?
Thanks!
Array of criteria | Criteria Range | Sum Range | |
PE | PE | 0.48319752 | |
OTS | OTS | 0.62705098 | |
WWD | WWD | 0.86165507 | |
WXG | WXG | 0.48221693 | |
L/NAT | 0.84089828 | ||
L/NAT | 0.95185048 | ||
OTS | 0.90960647 | ||
JAN | 0.0971486 | ||
APR | 0.1447644 | ||
MAY | 0.57678618 | ||
OTS | 0.68916729 | ||
SEP | 0.59132988 | ||
DEC | 0.48391153 | ||
TUE | 0.47043671 | ||
SAT | 0.95928812 | ||
SUN | 0.11259954 |