not to Index, Aggregate if a value is present, NBA InjuryList

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
696
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I'm using the following formula to obtain a List of Names (InjuryList!$B$3:$B$216) for a Particular Team (BO$1). Which works.
INDEX(InjuryList!$B$3:$B$200,AGGREGATE(15,6,(ROW(InjuryList!$A$3:$A$200)-ROW(InjuryList!$A$2))/(BO$1=InjuryList!$A$3:$A$200),ROWS(BO$3:BO3)))

I don't want to lookup if a Certain name (InjuryList!$B$3:$B$200) contains the value ("probable") in a certain column (InjuryList!$E:$E) for that name.
This should only leave: Dewayne, Gabe, Omer

Thank you.

Cell Formulas
RangeFormula
BO1BO1=LOOKUP(2, 1/((COUNTIF($B$1:BO1,Favs!$A$4:$A$33)=0)*(Favs!$A$4:$A$33<>"")),Favs!$A$4:$A$33)
BO2BO2=COUNTIF(InjuryList!$A:$A,BO$1)
BO3:BO15BO3=INDEX(InjuryList!$B$3:$B$200,AGGREGATE(15,6,(ROW(InjuryList!$A$3:$A$200)-ROW(InjuryList!$A$2))/(BO$1=InjuryList!$A$3:$A$200),ROWS(BO$3:BO3)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:EU15Cellcontains a blank value textNO
B26:B120,B3:B15,G3:G15,L3:L15,Q3:Q15,V3:V15,AA3:AA15,AF3:AF15,AK3:AK15,AP3:AP15,AU3:AU15,AZ3:AZ15,BE3:BE15,BJ3:BJ15,BO3:BO15,BT3:BT15,BY3:BY15,CD3:CD15,CI3:CI15,CN3:CN15,CS3:CS15,CX3:CX15,DC3:DC15,DH3:DH15,DM3:DM15,DR3:DR15,DW3:DW15,EB3:EB15,EG3:EG15Cell ValueduplicatestextNO



NBA.xlsm
BCDE
2PlayerTeamUpdateDescription
3John CollinsAtlanta Hawks12/1/2022Out (Ankle) - Collins is expected to miss a minimum of two weeks, according to Shams Charania of the Athletic. .
4Dejounte MurrayAtlanta Hawks12/8/2022Out (Ankle) - Murray is expected to miss two weeks with a left ankle sprain, according to Shams Charania of The Athetic.
5Danilo GallinariBoston Celtics9/2/2022Out For Season (Knee) - The Celtics announced that Gallinari tore his ACL in his left knee. There is no timetable for his return.
6Al HorfordBoston Celtics12/7/2022Out (Health and safety protocols) - The Celtics placed Horford in the league's health and safety protocols.
7Robert WilliamsBoston Celtics9/20/2022Out (Knee) - Williams III underwent a procedure and will need 4-6 weeks to recover, according to Adrian Wojnarowski of ESPN.
8Nic ClaxtonBrooklyn Nets12/11/2022Day To Day (Hamstring) - Claxton is questionable for Monday's (Dec. 12) game against Washington.
9Royce O'NealeBrooklyn Nets12/11/2022Out (Personal) - O'Neale is out for Monday's (Dec. 12) game against Washington.
10LaMelo BallCharlotte Hornets12/2/2022Out (Ankle) - Ball is dealing with a Grade 2 ankle sprain. No timetable has been announced for when he might return to action.
11Gordon HaywardCharlotte Hornets11/26/2022Out (Shoulder) - Hayward is dealing with a shoulder fracture and is out indefinitely, according to Shams Charania of The Athletic.
12Cody MartinCharlotte Hornets11/11/2022Out (Quad) - Martin has not played since Oct. 19 and no timetable has been announced for his return.
13Dennis Smith Jr.Charlotte Hornets12/2/2022Out (Ankle) - Smith Jr. has not played since Nov. 23 and no timetable has been announced for his return.
14Mark WilliamsCharlotte Hornets12/10/2022Out (Ankle) - Williams is OUT for Sunday's (Dec. 11) game against Philadelphia.
15Lonzo BallChicago Bulls9/29/2022Out (Knee) - Ball is expected to miss at least a few months, according to Shams Charania of The Athletic.
16Alex CarusoChicago Bulls12/11/2022Out (Back) - Caruso is out for Sunday's (Dec. 11) game against Atlanta.
17Kevin LoveCleveland Cavaliers12/11/2022Day To Day (Back) - Love is questionable for Monday's (Dec. 12) game against San Antonio.
18Donovan MitchellCleveland Cavaliers12/11/2022Day To Day (Leg) - Mitchell is questionable for Monday's (Dec. 12) game against San Antonio.
19Ricky RubioCleveland Cavaliers10/18/2022Out (Knee) - Rubio will miss the start of the season as he recovers from a left ACL tear.
20Dean WadeCleveland Cavaliers12/4/2022Out (Shoulder) - The Cavaliers announced that Wade has an AC joint sprain and is expected to miss 3-4 weeks
21Dylan WindlerCleveland Cavaliers11/16/2022Out (Ankle) - The Cavaliers announced that Windler will miss another 4-6 weeks.
22Luka DončićDallas Mavericks12/11/2022Day To Day (Quad) - Doncic is probable for Monday's (Dec. 12) game against Oklahoma City.
23Josh GreenDallas Mavericks12/11/2022Out (Elbow) - Green is out for Monday's (Dec. 12) game against Oklahoma City.
24Maxi KleberDallas Mavericks12/11/2022Day To Day (Foot) - Kleber is questionable for Monday's (Dec. 12) game against Oklahoma City.
25Collin GillespieDenver Nuggets10/18/2022Out (Leg) - The Nuggets announced that Gillespie is out indefinitely after undergoing surgery to repair a lower left leg fracture.
26Michael Porter Jr.Denver Nuggets12/2/2022Out (Heel) - Nuggets coach Michael Malone said that Porter doesn't have a timeframe for a return.
27Cade CunninghamDetroit Pistons12/5/2022Out (Shin) - Cunningham is out for Tuesday's (Dec. 6) game and still does not have a timetable for his return.
28Isaiah LiversDetroit Pistons12/11/2022Out (Shoulder) - Livers is out for Sunday's (Dec. 11) game against the Lakers.
29Andre IguodalaGolden State Warriors10/31/2022Out (Hip) - Iguodala has yet to make his season debut and the Warriors haven't announced a timeline for his return.
30Andrew WigginsGolden State Warriors12/11/2022Day To Day (Adductor) - Wiggins did not play in Saturday's game (Dec. 10) against the Celtics.
31Jae'Sean TateHouston Rockets11/14/2022Out (Ankle) - The Rockets announced that Tate will be re-evaluated in two to three weeks.
32Chris DuarteIndiana Pacers11/5/2022Out (Ankle) - Duarte is expected to miss 4-6 weeks with a grade 2 ankle sprain, according to Adrian Wojnarowski of ESPN.
33Daniel TheisIndiana Pacers11/10/2022Out (Knee) - Theis underwent surgery and is considered out indefinitely, according to Tony East of WTHR Channel 13 Indianapolis.
34Norman PowellLos Angeles Clippers12/11/2022Day To Day (Groin) - Powell did not play in Saturday's game (Dec.10) against the Wizards.
35Wenyen GabrielLos Angeles Lakers12/6/2022Out (Shoulder) - The Lakers announced that Gabriel will be our for at least a week.
36Juan Toscano-AndersonLos Angeles Lakers12/8/2022Out (Ankle) - The Lakers announced that Toscano-Anderson will miss about two weeks.
37Steven AdamsMemphis Grizzlies12/11/2022Day To Day (Ankle) - Adams is questionable for Monday's (Dec. 12) game against Atlanta.
38Desmond BaneMemphis Grizzlies12/7/2022Out (Toe) - The Grizzlies announced that Bane is projected to return in 3-4 weeks.
39Danny GreenMemphis Grizzlies6/28/2022Out (Knee) - The 76ers announced that Green has a torn ACL and LCL in his left knee.
40Jake LaRaviaMemphis Grizzlies12/11/2022Day To Day (Foot) - LaRavia is questionable for Monday's (Dec. 12) game against Atlanta.
41Ja MorantMemphis Grizzlies12/11/2022Day To Day (Thigh) - Morant is questionable for Monday's (Dec. 12) game against Atlanta.
42Jimmy ButlerMiami Heat12/11/2022Day To Day (Knee) - Butler is probable for Monday's (Dec. 12) game against Indiana.
43Dewayne DedmonMiami Heat12/11/2022Day To Day (Foot) - Dedmon is questionable for Monday's (Dec. 12) game against Indiana.
44Tyler HerroMiami Heat12/11/2022Day To Day (Ankle) - Herro is probable for Monday's (Dec. 12) game against Indiana.
45Victor OladipoMiami Heat12/11/2022Day To Day (Knee) - Oladipo is probable for Monday's (Dec. 12) game against Indiana.
46Duncan RobinsonMiami Heat12/11/2022Day To Day (Ankle) - Robinson is probable for Monday's (Dec. 12) game against Indiana.
47Max StrusMiami Heat12/11/2022Day To Day (Shoulder) - Strus is probable for Monday's (Dec. 12) game against Indiana.
48Gabe VincentMiami Heat12/11/2022Out (Knee) - Vincent is out for Monday's (Dec. 12) game against Indiana.
49Omer YurtsevenMiami Heat11/15/2022Out (Ankle) - The Heat announced that Yurtseven underwent surgery and will be re-evaluated at a later date.
50Joe InglesMilwaukee Bucks9/25/2022Out (Knee) - Bucks GM Jon Horst said Ingles is expected to return sometime in January.
51Wesley MatthewsMilwaukee Bucks12/7/2022Out (Health and safety protocols) - The Bucks placed Matthews in the league's health and safety protocols.
InjuryList
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:E993Expression=SEARCH("probable",$E3)>0textNO
B3:E993Expression=SEARCH("questionable",$E3)>0textNO
B3:E993Expression=SEARCH("indefinitely",$E3)>0textNO
B3:E993Expression=SEARCH("Out For Season",$E3)>0textNO
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
How about
Excel Formula:
=INDEX(InjuryList!$B$3:$B$200,AGGREGATE(15,6,(ROW(InjuryList!$A$3:$A$200)-ROW(InjuryList!$A$2))/(BO$1=InjuryList!$A$3:$A$200)/(ISERROR(SEARCH("Probable",InjuryList!$E$3:$E$200))),ROWS(BO$3:BO3)))
 
Upvote 0
Solution
How about
Excel Formula:
=INDEX(InjuryList!$B$3:$B$200,AGGREGATE(15,6,(ROW(InjuryList!$A$3:$A$200)-ROW(InjuryList!$A$2))/(BO$1=InjuryList!$A$3:$A$200)/(ISERROR(SEARCH("Probable",InjuryList!$E$3:$E$200))),ROWS(BO$3:BO3)))
Perfect. Thank you.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top