Index, Match when values the same

Grunter31

Board Regular
Joined
Mar 11, 2017
Messages
53
Office Version
  1. 365
Platform
  1. Windows
I'm trying to setup a roster. In Cell K1 I have the date (which changes through drop down box). In column A I have a list of dates which some are the same date, Column C has Team 1 and Column E has Team 2

What I'm needing is when I change the date in Cell K1 it only shows Team A on that date in Cell K2 and Team 2 in Cell L2.

Tue, Oct 22, 20198:00pNew Orleans PelicansToronto Raptors
Tue, Oct 22, 201910:30pLos Angeles LakersLos Angeles Clippers
Wed, Oct 23, 20197:00pCleveland CavaliersOrlando Magic
Wed, Oct 23, 20197:00pDetroit PistonsIndiana Pacers
Wed, Oct 23, 20197:00pChicago BullsCharlotte Hornets
Wed, Oct 23, 20197:30pMemphis GrizzliesMiami Heat
Wed, Oct 23, 20197:30pMinnesota TimberwolvesBrooklyn Nets
Wed, Oct 23, 20197:30pBoston CelticsPhiladelphia 76ers
Wed, Oct 23, 20198:30pWashington WizardsDallas Mavericks
Wed, Oct 23, 20198:30pNew York KnicksSan Antonio Spurs
Wed, Oct 23, 20199:00pOklahoma City ThunderUtah Jazz
Wed, Oct 23, 201910:00pDenver NuggetsPortland Trail Blazers
Wed, Oct 23, 201910:00pSacramento KingsPhoenix Suns
Thu, Oct 24, 20197:00pAtlanta HawksDetroit Pistons
Thu, Oct 24, 20198:00pMilwaukee BucksHouston Rockets
Thu, Oct 24, 201910:30pLos Angeles ClippersGolden State Warriors
Fri, Oct 25, 20197:00pToronto RaptorsBoston Celtics
Fri, Oct 25, 20197:00pMinnesota TimberwolvesCharlotte Hornets
Fri, Oct 25, 20197:30pNew York KnicksBrooklyn Nets
Fri, Oct 25, 20198:00pWashington WizardsOklahoma City Thunder
Fri, Oct 25, 20198:00pDallas MavericksNew Orleans Pelicans
Fri, Oct 25, 20198:00pChicago BullsMemphis Grizzlies
Fri, Oct 25, 20199:00pPhoenix SunsDenver Nuggets
Fri, Oct 25, 201910:00pPortland Trail BlazersSacramento Kings
Fri, Oct 25, 201910:30pUtah JazzLos Angeles Lakers
Sat, Oct 26, 20195:00pMiami HeatMilwaukee Bucks
Sat, Oct 26, 20197:00pPhiladelphia 76ersDetroit Pistons
Sat, Oct 26, 20197:30pOrlando MagicAtlanta Hawks
Sat, Oct 26, 20197:30pBoston CelticsNew York Knicks
Sat, Oct 26, 20198:00pNew Orleans PelicansHouston Rockets
Sat, Oct 26, 20198:00pIndiana PacersCleveland Cavaliers
Sat, Oct 26, 20198:00pToronto RaptorsChicago Bulls
Sat, Oct 26, 20198:30pWashington WizardsSan Antonio Spurs
Sat, Oct 26, 20199:00pSacramento KingsUtah Jazz
Sat, Oct 26, 201910:00pLos Angeles ClippersPhoenix Suns

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
you can try PowerQuery aka Get&Transform,

eg.

Select
Thu, Oct 24, 2019
SelectTimeTeam1Team2
Thu, Oct 24, 20197:00pAtlanta HawksDetroit Pistons
Thu, Oct 24, 20198:00pMilwaukee BucksHouston Rockets
Thu, Oct 24, 201910:30pLos Angeles ClippersGolden State Warriors
 
Upvote 0
Thanks, Unfortunately unless it's with a normal excel formula I can't do it.
 
Upvote 0
=INDEX($C2:$C1499,MATCH($K$1,IF($A2:$A1499=$K$1,$A2:$A1499),0))

this is formula I'm using. It half works but when I change dates I get duplicates in the first few cells.

Cleveland Cavaliers
Cleveland Cavaliers
Cleveland Cavaliers
Detroit Pistons
Chicago Bulls
Memphis Grizzlies
Minnesota Timberwolves
Boston Celtics
Washington Wizards
New York Knicks
Oklahoma City Thunder
Denver Nuggets
Sacramento Kings

<colgroup><col></colgroup><tbody>
</tbody>
 
Upvote 0
Yes. Something like what I have. I'm missing something in my formula but just can't workout what.
 
Upvote 0
Maybe something like this?
You will need Excel ver. 2010 or later with the AGGREGATE function.
Excel Workbook
ABCDEJKL
1DateTeam ATeam BThu, Oct 24, 2019
2Tue, Oct 22, 20198:00pNew Orleans PelicansToronto RaptorsAtlanta HawksDetroit Pistons
3Tue, Oct 22, 201910:30pLos Angeles LakersLos Angeles ClippersMilwaukee BucksHouston Rockets
4Wed, Oct 23, 20197:00pCleveland CavaliersOrlando MagicLos Angeles ClippersGolden State Warriors
5Wed, Oct 23, 20197:00pDetroit PistonsIndiana Pacers
6Wed, Oct 23, 20197:00pChicago BullsCharlotte Hornets
7Wed, Oct 23, 20197:30pMemphis GrizzliesMiami Heat
8Wed, Oct 23, 20197:30pMinnesota TimberwolvesBrooklyn Nets
9Wed, Oct 23, 20197:30pBoston CelticsPhiladelphia 76ers
10Wed, Oct 23, 20198:30pWashington WizardsDallas Mavericks
11Wed, Oct 23, 20198:30pNew York KnicksSan Antonio Spurs
12Wed, Oct 23, 20199:00pOklahoma City ThunderUtah Jazz
13Wed, Oct 23, 201910:00pDenver NuggetsPortland Trail Blazers
14Wed, Oct 23, 201910:00pSacramento KingsPhoenix Suns
15Thu, Oct 24, 20197:00pAtlanta HawksDetroit Pistons
16Thu, Oct 24, 20198:00pMilwaukee BucksHouston Rockets
17Thu, Oct 24, 201910:30pLos Angeles ClippersGolden State Warriors
18Fri, Oct 25, 20197:00pToronto RaptorsBoston Celtics
19Fri, Oct 25, 20197:00pMinnesota TimberwolvesCharlotte Hornets
20Fri, Oct 25, 20197:30pNew York KnicksBrooklyn Nets
21Fri, Oct 25, 20198:00pWashington WizardsOklahoma City Thunder
22Fri, Oct 25, 20198:00pDallas MavericksNew Orleans Pelicans
23Fri, Oct 25, 20198:00pChicago BullsMemphis Grizzlies
24Fri, Oct 25, 20199:00pPhoenix SunsDenver Nuggets
25Fri, Oct 25, 201910:00pPortland Trail BlazersSacramento Kings
26Fri, Oct 25, 201910:30pUtah JazzLos Angeles Lakers
27Sat, Oct 26, 20195:00pMiami HeatMilwaukee Bucks
28Sat, Oct 26, 20197:00pPhiladelphia 76ersDetroit Pistons
29Sat, Oct 26, 20197:30pOrlando MagicAtlanta Hawks
30Sat, Oct 26, 20197:30pBoston CelticsNew York Knicks
31Sat, Oct 26, 20198:00pNew Orleans PelicansHouston Rockets
32Sat, Oct 26, 20198:00pIndiana PacersCleveland Cavaliers
33Sat, Oct 26, 20198:00pToronto RaptorsChicago Bulls
34Sat, Oct 26, 20198:30pWashington WizardsSan Antonio Spurs
35Sat, Oct 26, 20199:00pSacramento KingsUtah Jazz
36Sat, Oct 26, 201910:00pLos Angeles ClippersPhoenix Suns
Sheet
 
Upvote 0
Thank you so much. Works 100% perfectly.

Been stuck for last 48 hours.

Once again Thank You
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,216
Members
448,876
Latest member
Solitario

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