Need help finding "Similar" Teams (I will pay anyone that can figure this out!)

TKWSNx93

New Member
Joined
Dec 11, 2016
Messages
6
I am comparing NBA teams and three of their stats on the road, and at home.

There are 30 teams. I am recording their Points per game at home, Points allowed at home, Pace at home, Points per game on the road, Points allowed on the road, and Pace on the road. This means a total of 6 numbers for each team.

Here is the data:

Home
PFPA
PACEAway
PFPAPACE
Atlanta106.2104.398.9Atlanta96.3100.699.2
Boston103.7103.796.5 Boston105.7102.795.5
Brooklyn105.8112.2100.5 Brooklyn106.8116.9102.9
Charlotte104.1101.496.7Charlotte105.7101.197.2
Chicago105.799.696.2 Chicago101100.194.9
Cleveland115.2103.596Cleveland106103.697.1
Dallas93.998.191.6 Dallas92.1102.992.6
Denver109.2112.798.4 Denver102.7105.399.2
Detroit101.190.194.1 Detroit98.9100.794
Golden State123.9109.299.9 Golden State115.2102.6100.8
Houston111101.697.5 Houston112.1109.197.6
Indiana103.4100.397.6 Indiana105.5115.398.2
LA Clippers106.596.595.5 LA Clippers109.9102.896.1
LA Lakers109.7109.899.2 LA Lakers100.5111.599.2
Memphis94.994.393.6 Memphis100.6102.292.6
Miami98.4100.194.6 Miami95.4100.592.9
Milwaukee108.9104.497.8Milwaukee94.798.495.7
Minnesota104103.694.6Minnesota103.5
109.895.6
New Orleans107.2108.799 New Orleans94.5100.596.1
New York105.5105.395.8 New York102.5108.996.9
Oklahoma City109.6103.198.8 Oklahoma City103.1107.199
Orlando9297.692.9 Orlando95.8100.595.6
Philadelphia98.8104.497.4Philadelphia95.4109.995.9
Phoenix102.8110101.9 Phoenix108.6115101.1
Portland112112.698.1Portland106.7110.597.8
Sacramento103.5105.195.8 Sacramento102.7103.295
San Antonio95.196.692.8San Antonio106.998.493.8
Toronto111.599.593.9 Toronto110.3106.896
Utah100.194.191.5 Utah100.697.891.8
Washington105.110597.2 Washington101.9107.396.2

<colgroup><col><col span="2"><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>

I need the teams to have similar numbers for all three categories. For example, Minnesota and New York are very similar because the numbers for Minnesota and New York are all within 2 points. We CANNOT find the average of all three numbers and compare them. For example, a team with 111points per game is NOT similar to a team with 99points per game even if their averages are similar.

I will pay anyone that can figure this out for me. This is a project I have been doing manually for months and it's about time I find a way to automate this!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

thanks for sharing feedback.

Regards


A small typo in the second formula: sorry, I'm traslating from my Italian settings PC. In the file formulas should be OK.

=IFERROR(INDEX($A$2:$A$31,AGGREGATE(15,6,ROW($2:$31)-ROW($A$2)+1/((ABS($G$2:$G$31-$G2)<2)*(ABS($H$2:$H$31-$H2)<2)*(ABS($I$2:$I$31-$I2)<2)*($A$2:$A$31<>$A2)),COLUMNS($A$1:A$1))),"")
 
Last edited:
Upvote 0
Here's an adaptation of Canapone's solution (L2 is a drop-down list):

Excel 2016 (Windows) 32 bit
ABCDEFGHIJKLMNOPQRST
1HomePFPAPACEAwayPFPAPACEHomePFPAPACEAwayPFPAPACE
2Atlanta106.2104.398.9Atlanta96.3100.699.2Minnesota104103.694.6Minnesota103.5109.895.6
3Boston103.7103.796.5Boston105.7102.795.5
4Brooklyn105.8112.2100.5Brooklyn106.8116.9102.9New York105.5105.395.8New York102.5108.996.9
5Charlotte104.1101.496.7Charlotte105.7101.197.2
6Chicago105.799.696.2Chicago101100.194.9
7Cleveland115.2103.596Cleveland106103.697.1
8Dallas93.998.191.6Dallas92.1102.992.6
9Denver109.2112.798.4Denver102.7105.399.2
10Detroit101.190.194.1Detroit98.9100.794
11Golden State123.9109.299.9Golden State115.2102.6100.8
12Houston111101.697.5Houston112.1109.197.6
13Indiana103.4100.397.6Indiana105.5115.398.2
14LA Clippers106.596.595.5LA Clippers109.9102.896.1
15LA Lakers109.7109.899.2LA Lakers100.5111.599.2
16Memphis94.994.393.6Memphis100.6102.292.6
17Miami98.4100.194.6Miami95.4100.592.9
18Milwaukee108.9104.497.8Milwaukee94.798.495.7
19Minnesota104103.694.6Minnesota103.5109.895.6
20New Orleans107.2108.799New Orleans94.5100.596.1
21New York105.5105.395.8New York102.5108.996.9
22Oklahoma City109.6103.198.8Oklahoma City103.1107.199
23Orlando9297.692.9Orlando95.8100.595.6
24Philadelphia98.8104.497.4Philadelphia95.4109.995.9
25Phoenix102.8110101.9Phoenix108.6115101.1
26Portland112112.698.1Portland106.7110.597.8
27Sacramento103.5105.195.8Sacramento102.7103.295
28San Antonio95.196.692.8San Antonio106.998.493.8
29Toronto111.599.593.9Toronto110.3106.896
30Utah100.194.191.5Utah100.697.891.8
31Washington105.110597.2Washington101.9107.396.2

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
M2=INDEX($B$2:$D$31,MATCH($L2,$A$2:$A$31,0),MATCH(M1,$B$1:$D$1,0))
N2=INDEX($B$2:$D$31,MATCH($L2,$A$2:$A$31,0),MATCH(N1,$B$1:$D$1,0))
O2=INDEX($B$2:$D$31,MATCH($L2,$A$2:$A$31,0),MATCH(O1,$B$1:$D$1,0))
Q2=L2
R2=INDEX($G$2:$I$31,MATCH($L2,$A$2:$A$31,0),MATCH(R1,$G$1:$I$1,0))
S2=INDEX($G$2:$I$31,MATCH($L2,$A$2:$A$31,0),MATCH(S1,$G$1:$I$1,0))
T2=INDEX($G$2:$I$31,MATCH($L2,$A$2:$A$31,0),MATCH(T1,$G$1:$I$1,0))
Q4=L4
R4=IFERROR(INDEX($G$2:$I$31,MATCH($L4,$A$2:$A$31,0),MATCH(R$1,$G$1:$I$1,0)),"")
S4=IFERROR(INDEX($G$2:$I$31,MATCH($L4,$A$2:$A$31,0),MATCH(S$1,$G$1:$I$1,0)),"")
T4=IFERROR(INDEX($G$2:$I$31,MATCH($L4,$A$2:$A$31,0),MATCH(T$1,$G$1:$I$1,0)),"")
M4=IFERROR(INDEX($B$2:$D$31,MATCH($L4,$A$2:$A$31,0),MATCH(M$1,$B$1:$D$1,0)),"")
N4=IFERROR(INDEX($B$2:$D$31,MATCH($L4,$A$2:$A$31,0),MATCH(N$1,$B$1:$D$1,0)),"")
O4=IFERROR(INDEX($B$2:$D$31,MATCH($L4,$A$2:$A$31,0),MATCH(O$1,$B$1:$D$1,0)),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
L4{=IFERROR(INDEX($A$2:$A$31,AGGREGATE(15,6,ROW($2:$31)-ROW($A$2)+1/((ABS($B$2:$B$31-$M$2)<=2)*(ABS($C$2:$C$31-$N$2)<=2)*(ABS($D$2:$D$31-$O$2)<=2)*(ABS($G$2:$G$31-$R$2)<=2)*(ABS($H$2:$H$31-$S$2)<=2)*(ABS($I$2:$I$31-$T$2)<=2)*($A$2:$A$31<>$L$2)),ROWS($A$1:A1))),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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