M
matthew.clegg
I am trying to return text depending conditional on multiple criteria.
Again best explained by example:
Area ID New Rank Select
A 1 1 7 Yes
A 2 0 4
A 3 0 2 Yes
A 4 1 8 Yes
A 5 0 3 Yes
A 6 0 1 Yes
A 7 0 5
A 8 0 6
B 1 1 7 Yes
B 2 1 4 Yes
B 3 1 2 Yes
B 4 1 8 Yes
B 5 1 3 Yes
B 6 1 1 Yes
B 7 1 5 Yes
B 8 0 6
The Column "Select" is what I am trying to calculate.
The rules are this:
1) Select per country
2) Always Select If new = 1 (doesn't matter how many)
3) If news are less than 5, add others up to five, selecting highest
ranked first
Cheers
Matt
Again best explained by example:
Area ID New Rank Select
A 1 1 7 Yes
A 2 0 4
A 3 0 2 Yes
A 4 1 8 Yes
A 5 0 3 Yes
A 6 0 1 Yes
A 7 0 5
A 8 0 6
B 1 1 7 Yes
B 2 1 4 Yes
B 3 1 2 Yes
B 4 1 8 Yes
B 5 1 3 Yes
B 6 1 1 Yes
B 7 1 5 Yes
B 8 0 6
The Column "Select" is what I am trying to calculate.
The rules are this:
1) Select per country
2) Always Select If new = 1 (doesn't matter how many)
3) If news are less than 5, add others up to five, selecting highest
ranked first
Cheers
Matt