What I am trying to do is the following:
If Column L does not contain "LINES SET TO 0" then select the highest from column M and Column N where they intersect. By intersect I mean where they are the highest for both categories respectively. In the example I show in the xl2bb, I do this with helper columns in AO, AP, and AQ using the top 25 percent for each column. If it is true for both columns, then that is where the intersection lies. My issue with using percentage is that the number of rows being selected changes based on percentage used. I would like the number of rows that result from the intersection to always be static. So for example, If I have the number "40" in range C29, then it will select the 40 highest rows that intersect. Any suggestions would be appreciated!
If Column L does not contain "LINES SET TO 0" then select the highest from column M and Column N where they intersect. By intersect I mean where they are the highest for both categories respectively. In the example I show in the xl2bb, I do this with helper columns in AO, AP, and AQ using the top 25 percent for each column. If it is true for both columns, then that is where the intersection lies. My issue with using percentage is that the number of rows being selected changes based on percentage used. I would like the number of rows that result from the intersection to always be static. So for example, If I have the number "40" in range C29, then it will select the 40 highest rows that intersect. Any suggestions would be appreciated!
REVISION36.xlsm | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | |||
1 | MVP | FLEX | FLEX | FLEX | FLEX | MVP Selection | Ceiling Projection↑ | Ownership L|U | Dak Prescott | Tom Brady | CeeDee Lamb | Ezekiel Elliott | Tony Pollard | Mike Evans | Chris Godwin | Leonard Fournette | Brett Maher | Russell Gage | Dalton Schultz | Michael Gallup | Ryan Succop | Dallas Cowboys | Rachaad White | Julio Jones | Tampa Bay Buccaneers | Noah Brown | Cade Otton | T.Y. Hilton | Jake Ferguson | Malik Davis | Lines Set To 0 | ||||||||
2 | Dak Prescott | Tom Brady | Brett Maher | Tampa Bay Buccaneers | Dalton Schultz | 1 | 116.3812066 | 0.46% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | FALSE | FALSE | 0 | ||
3 | Dak Prescott | Tom Brady | Brett Maher | Cade Otton | Dallas Cowboys | LINES SET TO 0 | 102.2808661 | 0.31% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | LINES SET TO 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | FALSE | FALSE | 0 | ||
4 | Dak Prescott | Tom Brady | Brett Maher | Dalton Schultz | Dallas Cowboys | 1 | 116.3309874 | 0.50% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | FALSE | FALSE | 0 | ||
5 | Dak Prescott | Tom Brady | Brett Maher | Cade Otton | Dalton Schultz | LINES SET TO 0 | 103.9211787 | 1.01% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | LINES SET TO 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | FALSE | FALSE | 0 | ||
6 | Dak Prescott | Tom Brady | Brett Maher | Tampa Bay Buccaneers | Rachaad White | 1 | 104.9772537 | 0.31% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | FALSE | FALSE | 0 | ||
7 | Dak Prescott | Tom Brady | Leonard Fournette | Ryan Succop | Dallas Cowboys | 1 | 125.3902108 | 0.36% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | TRUE | FALSE | 0 | ||
8 | Dak Prescott | Tom Brady | Leonard Fournette | Tampa Bay Buccaneers | Brett Maher | 1 | 123.7967263 | 0.76% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | TRUE | FALSE | 0 | ||
9 | Dak Prescott | Tom Brady | Leonard Fournette | Tampa Bay Buccaneers | Ryan Succop | 1 | 124.9535338 | 0.33% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | TRUE | FALSE | 0 | ||
10 | Dak Prescott | Tom Brady | Brett Maher | Cade Otton | Rachaad White | LINES SET TO 0 | 95.53929114 | 0.69% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | LINES SET TO 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | FALSE | FALSE | 0 | ||
11 | Dak Prescott | Tom Brady | Leonard Fournette | Dalton Schultz | Ryan Succop | 1 | 125.8302523 | 1.18% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | TRUE | FALSE | 0 | ||
12 | Dak Prescott | Tom Brady | Tony Pollard | Cade Otton | Brett Maher | LINES SET TO 0 | 105.1938994 | 0.89% | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | LINES SET TO 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | FALSE | FALSE | 0 | ||
13 | Dak Prescott | Tom Brady | Leonard Fournette | Cade Otton | Brett Maher | LINES SET TO 0 | 117.508351 | 1.66% | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | LINES SET TO 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | FALSE | FALSE | 0 | ||
Worksheet |
Cell Formulas | ||
---|---|---|
Range | Formula | |
O2:O13 | O2 | =IF(COUNTIF(H2:K2,$A$38)>0,IF(COUNTIF($C$38,">0"),"1","LINES SET TO 0"),0) |
P2:P13 | P2 | =IF(COUNTIF(H2:K2,$A$39)>0,IF(COUNTIF($C$39,">0"),"1","LINES SET TO 0"),0) |
Q2:Q13 | Q2 | =IF(COUNTIF(H2:K2,$A$40)>0,IF(COUNTIF($C$40,">0"),"1","LINES SET TO 0"),0) |
R2:R13 | R2 | =IF(COUNTIF(H2:K2,$A$41)>0,IF(COUNTIF($C$41,">0"),"1","LINES SET TO 0"),0) |
S2:S13 | S2 | =IF(COUNTIF(H2:K2,$A$42)>0,IF(COUNTIF($C$42,">0"),"1","LINES SET TO 0"),0) |
T2:T13 | T2 | =IF(COUNTIF(H2:K2,$A$43)>0,IF(COUNTIF($C$43,">0"),"1","LINES SET TO 0"),0) |
U2:U13 | U2 | =IF(COUNTIF(H2:K2,$A$44)>0,IF(COUNTIF($C$44,">0"),"1","LINES SET TO 0"),0) |
V2:V13 | V2 | =IF(COUNTIF(H2:K2,$A$45)>0,IF(COUNTIF($C$45,">0"),"1","LINES SET TO 0"),0) |
W2:W13 | W2 | =IF(COUNTIF(H2:K2,$A$46)>0,IF(COUNTIF($C$46,">0"),"1","LINES SET TO 0"),0) |
X2:X13 | X2 | =IF(COUNTIF(H2:K2,$A$47)>0,IF(COUNTIF($C$47,">0"),"1","LINES SET TO 0"),0) |
Y2:Y13 | Y2 | =IF(COUNTIF(H2:K2,$A$48)>0,IF(COUNTIF($C$48,">0"),"1","LINES SET TO 0"),0) |
Z2:Z13 | Z2 | =IF(COUNTIF(H2:K2,$A$49)>0,IF(COUNTIF($C$49,">0"),"1","LINES SET TO 0"),0) |
AA2:AA13 | AA2 | =IF(COUNTIF(H2:K2,$A$50)>0,IF(COUNTIF($C$50,">0"),"1","LINES SET TO 0"),0) |
AB2:AB13 | AB2 | =IF(COUNTIF(H2:K2,$A$51)>0,IF(COUNTIF($C$51,">0"),"1","LINES SET TO 0"),0) |
AC2:AC13 | AC2 | =IF(COUNTIF(H2:K2,$A$52)>0,IF(COUNTIF($C$52,">0"),"1","LINES SET TO 0"),0) |
AD2:AD13 | AD2 | =IF(COUNTIF(H2:K2,$A$53)>0,IF(COUNTIF($C$53,">0"),"1","LINES SET TO 0"),0) |
AE2:AE13 | AE2 | =IF(COUNTIF(H2:K2,$A$54)>0,IF(COUNTIF($C$54,">0"),"1","LINES SET TO 0"),0) |
AF2:AF13 | AF2 | =IF(COUNTIF(H2:K2,$A$55)>0,IF(COUNTIF($C$55,">0"),"1","LINES SET TO 0"),0) |
AG2:AG13 | AG2 | =IF(COUNTIF(H2:K2,$A$56)>0,IF(COUNTIF($C$56,">0"),"1","LINES SET TO 0"),0) |
AH2:AH13 | AH2 | =IF(COUNTIF(H2:K2,$A$57)>0,IF(COUNTIF($C$57,">0"),"1","LINES SET TO 0"),0) |
AI2:AI13 | AI2 | =IF(COUNTIF(H2:K2,$A$58)>0,IF(COUNTIF($C$58,">0"),"1","LINES SET TO 0"),0) |
AJ2:AJ13 | AJ2 | =IF(COUNTIF(H2:K2,$A$59)>0,IF(COUNTIF($C$59,">0"),"1","LINES SET TO 0"),0) |
AK2:AK13 | AK2 | =IF(COUNTIF(H2:K2,$A$60)>0,IF(COUNTIF($C$60,">0"),"1","LINES SET TO 0"),0) |
AL2:AL13 | AL2 | =IF(COUNTIF(H2:K2,$A$61)>0,IF(COUNTIF($C$61,">0"),"1","LINES SET TO 0"),0) |
AM2:AM13 | AM2 | =IF(COUNTIF(H2:K2,$A$62)>0,IF(COUNTIF($C$62,">0"),"1","LINES SET TO 0"),0) |
AN2:AN13 | AN2 | =COUNTIF(O2:AM2,"LINES SET TO 0") |
AO2:AO13 | AO2 | =IF(L2<>"LINES SET TO 0",M2>=PERCENTILE($M$2:$M$358,0.75),FALSE) |
AP2:AP13 | AP2 | =IF(L2<>"LINES SET TO 0",N2>=PERCENTILE($N$2:$N$358,0.75),FALSE) |
AQ2:AQ13 | AQ2 | =IF(AO2=TRUE,IF(AP2=TRUE,1,0),0) |
L2:L13 | L2 | =IF(AN2>0,"LINES SET TO 0",IFERROR(IF(N2>=AGGREGATE(14,6,$N$2:$N$1075/(($G$2:$G$1075=G2)*($AN$2:$AN$1075=0)),VLOOKUP(G2,$A$29:$C$35,3,0)),"x","1"),"LINES SET TO 0")) |