Thanks for the feedback, considering another cup of coffee, what would you recommend for three (3) conditions, such as:
[[ Case 1 ]]
Would that be complicated because two conditions are within the same range?
Would that be easier?
[[ Case 2 ]]
Would the formula be different?
First case...
[TABLE="width: 575"]
<TBODY>[TR]
[TD="class: xl65, width: 94, bgcolor: white"][/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
Week 1
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
Week 2
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
Week 3
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
Week 4
[/TD]
[TD="class: xl66, width: 29, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 22, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 70, bgcolor: white"]
cdt1
[/TD]
[TD="class: xl65, width: 81, bgcolor: white"]
Nicola
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"][/TD]
[TD="class: xl65, width: 64, bgcolor: white"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Nicola
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
D
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 70, bgcolor: white"]
cdt2
[/TD]
[TD="class: xl65, width: 81, bgcolor: white"]
Michael
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"][/TD]
[TD="class: xl65, width: 64, bgcolor: white"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Kevin
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
D
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 70, bgcolor: white"]
cdt3
[/TD]
[TD="class: xl65, width: 81, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"][/TD]
[TD="class: xl65, width: 64, bgcolor: white"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Nicola
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
V
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 70, bgcolor: white"]
result
[/TD]
[TD="class: xl65, width: 81, bgcolor: white"]
Week 1
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
Week 3
[/TD]
[TD="class: xl65, width: 64, bgcolor: white"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Sam
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
T
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Peter
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
D
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Peter
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
D
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Roger
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
V
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Kevin
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
D
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
D
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Michael
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
T
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
V
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 94, bgcolor: white"]
Peter
[/TD]
[TD="class: xl65, width: 85, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 86, bgcolor: white"]
V
[/TD]
[TD="class: xl65, width: 78, bgcolor: white"]
V
[/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
I4, control+shift+enter, not just enter, and copy across:
Rich (BB code):
=IFERROR(INDEX($B$1:$E$1,SMALL(IF($B$2:$E$11=$I$3,
IF(ISNUMBER(MATCH($A$2:$A$11,$I$1:$I$2,0)),
IF(ISNA(MATCH($B$1:$E$1,$H$4:H4,0)),COLUMN($B$1:$E$1)-COLUMN($B$1)+1))),
COLUMNS($I$4:I4))),"")
Second case...
[TABLE="width: 564"]
<TBODY>[TR]
[TD="class: xl66, width: 97, bgcolor: white"][/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
Rank
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
Week 1
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
Week 2
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
Week 3
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
Week 4
[/TD]
[TD="class: xl65, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 64, bgcolor: white"]
cdt1
[/TD]
[TD="class: xl66, width: 74, bgcolor: white"]
Nicola
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Nicola
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
S
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 64, bgcolor: white"]
cdt2
[/TD]
[TD="class: xl66, width: 74, bgcolor: white"]
S
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Kevin
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
P
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 64, bgcolor: white"]
cdt3
[/TD]
[TD="class: xl66, width: 74, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Nicola
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
N
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl67, width: 64, bgcolor: white"]
result
[/TD]
[TD="class: xl65, bgcolor: transparent"]
Week 1
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Sam
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
S
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
T
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Peter
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
P
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Peter
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Roger
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Kevin
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
A
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
D
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
D
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Michael
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
Q
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
T
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl66, width: 97, bgcolor: white"]
Peter
[/TD]
[TD="class: xl66, width: 64, bgcolor: white"]
W
[/TD]
[TD="class: xl66, width: 80, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 82, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 84, bgcolor: white"]
V
[/TD]
[TD="class: xl66, width: 79, bgcolor: white"]
V
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
I4, control+shift+enter, not just enter, and copy across:
Rich (BB code):
=IFERROR(INDEX($C$1:$F$1,SMALL(IF($B$2:$B$11=$I$2,
IF($C$2:$F$11=$I$3,IF($A$2:$A$11=$I$1,IF(ISNA(MATCH($C$1:$F$1,$H$4:H4,0)),
COLUMN($C$1:$F$1)-COLUMN($C$1)+1)))),COLUMNS($I$4:I4))),"")
As can be seen from the formulas, the processing is to a large extent similar.