Index-Match/Aggregate Help

711excelhelp

New Member
Joined
Jul 11, 2020
Messages
5
Office Version
  1. 2013
My problem is as follows: I have the below schedule for a series of games between 4 teams. For these games, TeamX is allowed to scout any games of their next opponent prior to the match-up with TeamX's match-up with said opponent. So for example, AvsB is Game 1, CvsD is Game 2, AvsC is Game 3. A would be able to scout Game2 because Team C is their next opponent at the time of Game 2. How I determine who a next teams opponent is formulaically, then determine which games of that opponent they can scout?

I.e., In column for, I would like to formulaically "A" in the empty column for Game # 4 & 6, because Team D is Team A's next opponent at the time Team D plays those games. The fourth column is a helper column on the assumption it is easier to match to a martial match-up given there are are two columns a team could be found in.


Game #AwayHome
1ABA-B
2CDC-D
3ACA-C
4BDB-D
5BCB-C
6CDC-D
7ABA-B
8ADA-D
9BCB-C
10ADA-D
 

Attachments

  • 1594481092528.png
    1594481092528.png
    16.4 KB · Views: 3

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
What you're asking for is making sense but is more than a little confusing. Please add your expected results to the example so that we can be sure we are giving you exactly what is needed with a minimal amount of guesswork and incorrect answers.
 
Upvote 0
What you're asking for is making sense but is more than a little confusing. Please add your expected results to the example so that we can be sure we are giving you exactly what is needed with a minimal amount of guesswork and incorrect answers.

See below for amended table. I agree it is confuses - I confuse myself as well. So, using 3 row (incl. header), the outputs are A & B because at the time C&D play, C is A's next opponent and D is B's next opponent.


Game #AwayHomeOutput(s)
1ABA-B
2CDC-DAB
3ACA-C
4BDB-DAC
5BCB-CAD
6CDC-D
7ABA-BDC
8ADA-DD
9BCB-C
10ADA-D
 
Upvote 0
There's something that I'm not quite following, could you have a look at the results in my test below and explain the differences?

For example, why should E5 be A and not C? Why should row 4 be blank? Formulas are in columns E and F, with your example results in H and I for comparing.

Book1
ABCDEFGHI
1Game #AwayHomeOutput(s)
21ABA-B
32CDC-DABAB
43ACA-CBB
54BDB-DCCAC
65BCB-CADAD
76CDC-DBA
87ABA-BDCDC
98ADA-D  D
109BCB-C  
1110ADA-D  
12
Sheet3
Cell Formulas
RangeFormula
E3:F11E3=IFERROR(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(INDEX($D:$D,AGGREGATE(15,6,ROW($B4:$C$12)/($B4:$C$12=B3),1),0),$B3,""),"-",""),$C3,""),"")
 
Upvote 0
Similar idea, with the same results
+Fluff New.xlsm
ABCDEF
1Game #AwayHomeOutput(s)
21ABA-B
32CDC-DAB
43ACA-CBB
54BDB-DCC
65BCB-CAD
76CDC-DBA
87ABA-BDC
98ADA-D  
109BCB-C  
1110ADA-D  
Invoice
Cell Formulas
RangeFormula
E3:F11E3=IFERROR(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(INDEX($D4:$D11,MATCH("*"&B3&"*",$D4:$D11,0)),$B3,""),"-",""),$C3,""),"")
 
Upvote 0
Just realised that E3,F3 is wrong as Bs next game is against D so cannot watch A-C, same goes for row 7.
However should E4 be both A & C
 
Upvote 0
Another attempt, but getting messy.
+Fluff New.xlsm
ABCDEF
1Game #AwayHomeOutput(s)
21ABA-B
32CDC-DAB
43ACA-C  
54BDB-DCC
65BCB-CAD
76CDC-D  
87ABA-BDC
98ADA-D  
109BCB-C  
1110ADA-D  
Invoice
Cell Formulas
RangeFormula
E3:F11E3=IF(LEN(SUBSTITUTE(SUBSTITUTE($B4&$C4,$B3,""),$C3,""))=1,IFERROR(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(INDEX($D4:$D11,MATCH("*"&B3&"*",$D4:$D11,0)),$B3,""),"-",""),$C3,""),""),"")
 
Upvote 0
Cross posted Index-Match/Aggregate Help

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Release I lagged on this, but some life stuff happened. Apologize for the cross-post and thank for those offering solutions.
 
Upvote 0

Forum statistics

Threads
1,215,235
Messages
6,123,779
Members
449,123
Latest member
StorageQueen24

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