INDEX - AGGREGATE help

AYouQueTai

Board Regular
Joined
Sep 14, 2019
Messages
50
Office Version
  1. 365
Platform
  1. Windows
I'd like a formula to look at the date in P5 of my Matchup sheet and fetch all of the Game ID's from my schedule sheet (can be from 0 to 15 on a given night) and list them from P8 to P22 on the Matchup sheet.
Can anyone help? I asked a similar question yesterday and got a formula that worked great so I tried to modify it for this problem but I cant wrap my head around dividing the aggregate function.

OverUnder2021.xlsx
PQR
5Feb-04
6
7Game IDVisitorHome
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Matchup


OverUnder2021.xlsx
ABCDEF
1GameIDStatusDateTimeVisitorHome
2020001CompletedJan-135:30 PMPittsburghPhiladelphia
3020002CompletedJan-138:00 PMChicagoTampa Bay
4020003CompletedJan-137:00 PMMontrealToronto
5020004CompletedJan-1310:00 PMVancouverEdmonton
6020005CompletedJan-1310:30 PMSt-LouisColorado
7020006CompletedJan-147:00 PMWashingtonBuffalo
8020007CompletedJan-147:00 PMBostonNew Jersey
9020008CompletedJan-147:00 PMNY IslandersNY Rangers
10020010CompletedJan-147:30 PMCarolinaDetroit
11020011CompletedJan-148:00 PMColumbusNashville
12020012CompletedJan-148:00 PMCalgaryWinnipeg
Schedule
Cells with Data Validation
CellAllowCriteria
F1:F12List=INDIRECT("Teams[Team]")
E2:E12List=INDIRECT("Teams[Team]")
B2:B12List=Dropdowns!$A$2:$A$4
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about
Cell Formulas
RangeFormula
P8:P19P8=IFERROR(INDEX(Schedule!$A$2:$A$100,AGGREGATE(15,6,(ROW(Schedule!$A$2:$A$100)-ROW(Schedule!$A$2)+1)/(Schedule!$C$2:$C$100=$P$5)/(Schedule!$A$2:$A$100<>""),ROWS(P$8:P8))),"")
Q8:R19Q8=IFERROR(INDEX(Schedule!E$2:E$100,AGGREGATE(15,6,(ROW(Schedule!$A$2:$A$100)-ROW(Schedule!$A$2)+1)/(Schedule!$C$2:$C$100=$P$5)/(Schedule!$A$2:$A$100<>""),ROWS(Q$8:Q8))),"")


In future it would help if you supplied data that matched you criteria. ;)
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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