gtd526
Well-known Member
- Joined
- Jul 30, 2013
- Messages
- 684
- Office Version
- 2019
- Platform
- Windows
Hello,
I have a formula that finds the 2nd largest value in a range (A42).
How can I offset from that value to get the heading (A44)? ie "MOV > ATS" (I39)
Thank you.
I have a formula that finds the 2nd largest value in a range (A42).
How can I offset from that value to get the heading (A44)? ie "MOV > ATS" (I39)
Thank you.
NBA.xlsm | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | ||||||
36 | Max % | not FAV | |||||||||||||||||||||||||||||
37 | 100% | (ATS) | |||||||||||||||||||||||||||||
38 | Criteria | as FAV | Count Diff >= 5 (K:K) | not FAV | not FAV | not FAV | AH:AK | ||||||||||||||||||||||||
39 | AH:AK > 70% | MOV > ATS | ATS > 0 as Fav | AH:AK > 60% | AH:AK > 70% | Current | Indicator >=70% | >=70% | |||||||||||||||||||||||
40 | W: | 0 | W: | 0 | W: | 0 | W: | 0 | W | 0 | W | 0 | |||||||||||||||||||
41 | 2nd Max % | L: | 0 | L: | 0 | L: | 0 | L: | 0 | L | 0 | L | 0 | ||||||||||||||||||
42 | 68% | Psh: | 0 | Psh: | 0 | Psh: | 0 | Psh: | 0 | Psh | 0 | Psh | 0 | ||||||||||||||||||
43 | 2nd Criteria | Previous | 67% | Previous | 68% | Previous | 57% | Previous | 100% | Previous | 63% | Previous | 100% | ||||||||||||||||||
44 | $O$43 | W: | 14.0 | $28.70 | W: | 21.0 | $45.55 | W: | 4.0 | $3.20 | W: | 3.0 | $13.65 | W | 27 | $42.85 | W | 1 | $4.55 | ||||||||||||
45 | L: | 7.0 | Count | L: | 10.0 | Count | L: | 3.0 | > 60% | L: | 0.0 | > 70% | L | 16 | > 70% | L | 0 | > 70% | |||||||||||||
46 | test | Total | 0 | Total | 0 | Total | 0 | Total | 0 | Total | 0 | Total | 0 | ||||||||||||||||||
47 | $O$43 | W: | 14.0 | W: | 21.0 | W: | 4.0 | W: | 3.0 | W | 27 | W | 1 | ||||||||||||||||||
48 | L: | 7.0 | L: | 10.0 | L: | 3.0 | L: | 0.0 | L | 16 | L | 0 | |||||||||||||||||||
49 | |||||||||||||||||||||||||||||||
50 | not FAV | not FAV, Inj < 70% | Indicator > 70%, +10 Count | Indicator > 70%, +10 Count | |||||||||||||||||||||||||||
51 | (MOV > ATS) (AI:AK >70%) | AI:AK > 70% | Team | Ind | % | $ | Count | ||||||||||||||||||||||||
52 | W: | 0 | W: | 0 | W | 0 | |||||||||||||||||||||||||
53 | L: | 0 | L: | 0 | L | 0 | |||||||||||||||||||||||||
54 | Psh: | 0 | Psh: | 0 | Psh | 0 | |||||||||||||||||||||||||
55 | Previous | 100% | Previous | 0% | Previous | 58% | |||||||||||||||||||||||||
56 | W: | 1.0 | $4.55 | W: | 0.0 | -$5.00 | (LARGE($AJ$4:$AJ$33,ROWS(Z$52:Z52))) | W | 11 | $10.05 | |||||||||||||||||||||
57 | L: | 0.0 | Count | L: | 1.0 | > 70% | L | 8 | Count | ||||||||||||||||||||||
58 | Total | 0 | Total | 0 | Total | 0 | |||||||||||||||||||||||||
59 | W: | 1.0 | W: | 0.0 | W | 11 | |||||||||||||||||||||||||
60 | L: | 0.0 | L: | 1.0 | L | 8 | |||||||||||||||||||||||||
Favs |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A37:B37 | A37 | =INDIRECT(INDEX(NBA_Best_Percent,MATCH(MAX(N(INDIRECT(NBA_Best_Percent))),N(INDIRECT(NBA_Best_Percent)),0))) |
A39:B39 | A39 | =OFFSET(INDIRECT(INDEX(NBA_Best_Percent,MATCH(MAX(N(INDIRECT(NBA_Best_Percent))),N(INDIRECT(NBA_Best_Percent)),0))),-4,-2) |
A42 | A42 | =AGGREGATE(14,6,K43:AA55/(MOD(ROW(K43:AA55)-ROW(K43),11)=0)/(MOD(COLUMN(K43:AA55)-COLUMN(K43),4)=0),2) |
J40 | J40 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($S$4:$S$33>0)*ISNUMBER($S$4:$S$33)*($AN$4:$AN$33<$AN$1)*($C$4:$C$33="W"))+J42*0.5 |
J41 | J41 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($S$4:$S$33>0)*ISNUMBER($S$4:$S$33)*($AN$4:$AN$33<$AN$1)*($C$4:$C$33="L"))+J42*0.5 |
J42 | J42 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($S$4:$S$33>0)*ISNUMBER($S$4:$S$33)*($AN$4:$AN$33<$AN$1)*($C$4:$C$33="Psh")) |
N40 | N40 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($B$4:$B$33>0)*($K$4:$K$33>=5)*($C$4:$C$33="W")*($AN$4:$AN$33<$AN$1))+N42*0.5 |
N41 | N41 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($B$4:$B$33>0)*($K$4:$K$33>=5)*($C$4:$C$33="L")*($AN$4:$AN$33<$AN$1))+N42*0.5 |
N42 | N42 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($B$4:$B$33>0)*($K$4:$K$33>=5)*($C$4:$C$33="Psh")*($AN$4:$AN$33<$AN$1)) |
Q40 | Q40 | =COUNTIFS($C$4:$C$33,"W",$AH$4:$AH$33,">=0.6",$AH$4:$AH$33,"<0.7",$AI$4:$AI$33,">=0.6",$AI$4:$AI$33,"<0.7",$AJ$4:$AJ$33,">=0.6",$AJ$4:$AJ$33,"<0.7",$AK$4:$AK$33,">=0.6",$AK$4:$AK$33,"<0.7",$AN$4:$AN$33,"<"&$AN$1)+Q42*0.5 |
Q41 | Q41 | =COUNTIFS($C$4:$C$33,"L",$AH$4:$AH$33,">=0.6",$AH$4:$AH$33,"<0.7",$AI$4:$AI$33,">=0.6",$AI$4:$AI$33,"<0.7",$AJ$4:$AJ$33,">=0.6",$AJ$4:$AJ$33,"<0.7",$AK$4:$AK$33,">=0.6",$AK$4:$AK$33,"<0.7",$AN$4:$AN$33,"<"&$AN$1)+Q42*0.5 |
Q42 | Q42 | =COUNTIFS($C$4:$C$33,"Psh",$AH$4:$AH$33,">=0.6",$AH$4:$AH$33,"<0.7",$AI$4:$AI$33,">=0.6",$AI$4:$AI$33,"<0.7",$AJ$4:$AJ$33,">=0.6",$AJ$4:$AJ$33,"<0.7",$AK$4:$AK$33,">=0.6",$AK$4:$AK$33,"<0.7",$AN$4:$AN$33,"<"&$AN$1) |
T40,Z40 | T40 | =COUNTIFS($C$4:$C$33,"W",$AH$4:$AH$33,">=.7",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=.7",$AK$4:$AK$33,">=.7",$AN$4:$AN$33,"<"&$AN$1)+T42*0.5 |
T41,Z41 | T41 | =COUNTIFS($C$4:$C$33,"L",$AH$4:$AH$33,">=.7",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=.7",$AK$4:$AK$33,">=.7",$AN$4:$AN$33,"<"&$AN$1)+T42*0.5 |
T42 | T42 | =COUNTIFS($C$4:$C$33,"Psh",$AH$4:$AH$33,">=.6",$AI$4:$AI$33,">=0.6",$AJ$4:$AJ$33,">=.6",$AK$4:$AK$33,">=.6",$AN$4:$AN$33,"<"&$AN$1) |
W40 | W40 | =COUNTIFS(AH4:AH33,">=.7",C4:C33,"W",$AN$4:$AN$33,"<"&$AN$1)+(W42*0.5) |
W41 | W41 | =COUNTIFS(AH4:AH33,">=.7",C4:C33,"L",$AN$4:$AN$33,"<"&$AN$1)+(W42*0.5) |
W42 | W42 | =COUNTIFS(AH4:AH33,">=.7",C4:C33,"Psh",$AN$4:$AN$33,"<"&$AN$1) |
Z42 | Z42 | =COUNTIFS($C$4:$C$33,"Psh",$AH$4:$AH$33,">=.7",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=.7",$AK$4:$AK$33,">=.7",$AN$4:$AN$33,"<"&$AN$1) |
A44 | A44 | =ADDRESS(AGGREGATE(15,6,ROW(K43:AA55)/(K43:AA55=$A42),1),AGGREGATE(15,6,COLUMN(K43:AA55)/(K43:AA55=A42),1)) |
K43,AC55,O55,K55,AA43,X43,U43,R43,O43 | K43 | =J44/(J44+J45) |
K44,O56,K56,U44,R44,O44 | K44 | =(J44*4.55-(J45*5)) |
X44,AC56,AA44 | X44 | =(W44*4.55)-(W45*5) |
K46 | K46 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($S$4:$S$33>0)*ISNUMBER($S$4:$S$33)*($AN$4:$AN$33<$AN$1)) |
O46 | O46 | =SUMPRODUCT(($A$4:$A$33=$AG$4:$AG$33)*($B$4:$B$33>0)*($K$4:$K$33>=5)*($AN$4:$AN$33<$AN$1)) |
R46 | R46 | =COUNTIFS($AH$4:$AH$33,">=0.6",$AH$4:$AH$33,"<0.7",$AI$4:$AI$33,">=0.6",$AI$4:$AI$33,"<0.7",$AJ$4:$AJ$33,">=0.6",$AJ$4:$AJ$33,"<0.7",$AK$4:$AK$33,">=0.6",$AK$4:$AK$33,"<0.7",$AN$4:$AN$33,"<"&$AN$1) |
U46 | U46 | =COUNTIFS($AH$4:$AH$33,">=.7",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=.7",$AK$4:$AK$33,">=.7",$AN$4:$AN$33,"<"&$AN$1) |
X46 | X46 | =COUNTIFS(AH4:AH33,">0.7",$AN$4:$AN$33,"<"&$AN$1) |
AA46 | AA46 | =COUNTIFS($AO$4:$AO$33,">=.7",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=.7",$AK$4:$AK$33,">=.7",$AN$4:$AN$33,"<"&$AN$1) |
A47 | A47 | =ADDRESS(AGGREGATE(15,6,ROW(K43:AA55)/(K43:AA55=$A42),1),AGGREGATE(15,6,COLUMN(K43:AA55)/(K43:AA55=A42),1)) |
AB59:AB60,N59:N60,J59:J60,Z47:Z48,W47:W48,T47:T48,Q47:Q48,N47:N48,J47:J48 | J47 | =J40+J44 |
U52:U55 | U52 | =IFERROR(INDEX($A$4:$A$33,MATCH($V52,$G$4:$G$33,0),MATCH($Z52,$AF$4:$AF$33,0)),"") |
V52:V55 | V52 | =IFERROR(LOOKUP(2, 1/((COUNTIF($V$50:$V51,$G$4:$G$33)=0)*($AH$4:$AH$33>=0.7)*($AF$4:$AF$33>=10)),$G$4:$G$33),"") |
X52:X55 | X52 | =INDEX($AH$4:$AH$33,MATCH($V52,$G$4:$G$33,0)) |
Y52:Y55 | Y52 | =IFERROR(VLOOKUP($V52,'Criteria Ranks'!$A$3:$C$82,2,0),"") |
Z52:Z55 | Z52 | =IFERROR(VLOOKUP($V52,'Criteria Ranks'!$A$3:$D$82,4,0),"") |
J52 | J52 | =SUMPRODUCT((C4:C33="W")*(S4:S33<>"")*(S4:S33>0)*(AI4:AI33>=0.7)*(AJ4:AJ33>=0.7)*(AK4:AK33>=0.7)*(AN4:AN33<$AN$1))+$J$54*0.5 |
J53 | J53 | =SUMPRODUCT((C4:C33="L")*(S4:S33<>"")*(S4:S33>0)*(AI4:AI33>=0.7)*(AJ4:AJ33>=0.7)*(AK4:AK33>=0.7)*(AN4:AN33<$AN$1))+$J$54*0.5 |
J54 | J54 | =SUMPRODUCT((C4:C33="Psh")*(S4:S33<>"")*(S4:S33>0)*(AI4:AI33>=0.7)*(AJ4:AJ33>=0.7)*(AK4:AK33>=0.7)*(AN4:AN33<$AN$1)) |
N52 | N52 | =COUNTIFS($C$4:$C$33,"W",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=.7",$AK$4:$AK$33,">=.7",$AN$4:$AN$33,"<"&$AN$1)+N54*0.5 |
N53 | N53 | =COUNTIFS($C$4:$C$33,"L",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=0.7",$AK$4:$AK$33,">=0.7",$AN$4:$AN$33,"<"&$AN$1)+N54*0.5 |
N54 | N54 | =COUNTIFS($C$4:$C$33,"Psh",$AI$4:$AI$33,">=0.7",$AJ$4:$AJ$33,">=.7",$AK$4:$AK$33,">=.7",$AN$4:$AN$33,"<"&$AN$1) |
AB52 | AB52 | =COUNTIFS(AH4:AH33,">=.7",$AF$4:$AF$33,">=10",$AF$4:$AF$33,"<>""",$C$4:$C$33,"W")+(AB54*0.5) |
AB53 | AB53 | =COUNTIFS(AH4:AH33,">=.7",$AF$4:$AF$33,">=10",$AF$4:$AF$33,"<>""",$C$4:$C$33,"L")+(AB54*0.5) |
AB54 | AB54 | =COUNTIFS(AH4:AH33,">=.7",$AF$4:$AF$33,">=10",$AF$4:$AF$33,"<>""",$C$4:$C$33,"Psh") |
K58 | K58 | =SUMPRODUCT((S4:S33<>"")*(S4:S33>0)*(AI4:AI33>=0.7)*(AJ4:AJ33>=0.7)*(AK4:AK33>=0.7)*(AN4:AN33<$AN$1)) |
O58 | O58 | =COUNTIFS($AI$4:$AI$33,">=.7",$AJ$4:$AJ$33,">=0.7",$AK$4:$AK$33,">=.7") |
AC58 | AC58 | =COUNTIFS(AH4:AH33,">=.7",$AF$4:$AF$33,">=10",$AF$4:$AF$33,"<>""") |
Press CTRL+SHIFT+ENTER to enter array formulas. |